Skip to content

Commit

Permalink
fix(usersync): correctly parse list from arborist response
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Oct 14, 2019
1 parent 8f7eed1 commit bf44d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/sync/sync_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ def _update_authz_in_arborist(self, session, user_projects, user_yaml=None):
# removing access, the case in the Fence db is used. For combining access, it is
# case-insensitive, so we lower
arborist_user_projects = {
user["name"].lower(): {} for user in arborist_users.items()
user["name"].lower(): {} for user in arborist_users
}
except (ArboristError, KeyError) as error:
# TODO usersync should probably exit with non-zero exit code at the end,
Expand Down

0 comments on commit bf44d70

Please sign in to comment.