Skip to content

Commit

Permalink
SRAM: compare names for uid retreieval case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Nov 14, 2023
1 parent 25e7e70 commit fac2de9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sram.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def sram_get_uid(ctx, co_identifier, user_name):

uid = ''
for key in data['collaboration_memberships']:
if key['user']['email'] == user_name.split('#')[0]:
yoda_name = user_name.split('#')[0]
sram_name = key['user']['email']
if yoda_name.lower() == sram_name.lower():
uid = key['user']['uid']

if config.sram_verbose_logging:
Expand Down

0 comments on commit fac2de9

Please sign in to comment.