Skip to content

Commit

Permalink
fix(sync): make merging dicts from yaml and csv(s) lower the case of …
Browse files Browse the repository at this point in the history
…usernames (#545)
  • Loading branch information
Avantol13 authored Jan 29, 2019
1 parent b8625e5 commit e4b58f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fence/sync/sync_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,14 @@ def _sync(self, sess):
self.logger.error("aborting early")
return

user_projects_csv = {
key.lower(): value for key, value in user_projects_csv.iteritems()
}
user_projects = {key.lower(): value for key, value in user_projects.iteritems()}
user_yaml.projects = {
key.lower(): value for key, value in user_yaml.projects.iteritems()
}

self.sync_two_phsids_dict(user_projects_csv, user_projects)
self.sync_two_user_info_dict(user_info_csv, user_info)

Expand Down

0 comments on commit e4b58f8

Please sign in to comment.