Skip to content

Commit

Permalink
Exit program after gitlab errors (fixes #8)
Browse files Browse the repository at this point in the history
- Avoid to compare empty users list and kubernetes rbac
  • Loading branch information
Lujeni committed Dec 12, 2019
1 parent 31b02c5 commit 4f2766c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitlab2rbac.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def get_admins(self):
return admins
except Exception as e:
logging.error("unable to retrieve admins :: {}".format(e))
exit(1)
return []

def get_users(self):
Expand Down Expand Up @@ -143,6 +144,7 @@ def get_users(self):
return users
except Exception as e:
logging.error("unable to retrieve users :: {}".format(e))
exit(1)
return []

def get_groups(self):
Expand Down

0 comments on commit 4f2766c

Please sign in to comment.