Skip to content

Fix for 862 #863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions user_sync/engine/umapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,11 @@ def create_umapi_user(self, user_key, groups_to_add, umapi_info, trusted):

def get_from_index(self, index, user_key):
"""Parse user key and try to retrieve user from provided index"""

_, username, _, email = self.parse_user_key(user_key)
try:
_, username, _, email = self.parse_user_key(user_key)
except ValueError:
self.logger.critical("Invalid user_key: {}".format(user_key))
raise ValueError("Check user's email and username in the source directory!")
return index.get(email=email, username=username)

def update_umapi_user(self, umapi_info, user_key, attributes_to_update=None, groups_to_add=None,
Expand Down