Skip to content

Commit

Permalink
fix(sync-override): lower usernames before using user_yaml.user_abac
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Jan 9, 2020
1 parent a4270a8 commit 98eb3e6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fence/sync/sync_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,14 @@ def _update_authz_in_arborist(self, session, user_projects, user_yaml=None):
self.logger.debug("user_projects 1:\n{}".format(user_projects))

if user_yaml:
self.logger.debug("useryaml abac: {}".format(user_yaml.user_abac))
self.logger.debug(
"useryaml abac before lowering usernames: {}".format(
user_yaml.user_abac
)
)
user_yaml.user_abac = {
key.lower(): value for key, value in user_yaml.user_abac.items()
}

# update the project info with `projects` specified in user.yaml
self.sync_two_phsids_dict(user_yaml.user_abac, user_projects)
Expand Down

0 comments on commit 98eb3e6

Please sign in to comment.