Skip to content

Commit

Permalink
user_update: Fix typo in passing log to grouper_delta_user #57
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Sep 30, 2020
1 parent 6115f6e commit e13b6b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/user_update
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ if __name__ == '__main__':
current_dict['not_active']['netid'],
set(current_dict['not_active']['uaid']),
'add', grouper_dict, delta_dict,
sync=args.sync, log=None)
sync=args.sync, log=log)
else:
log.info("All users are member of figshare:active. No need to add")
else:
Expand All @@ -284,7 +284,7 @@ if __name__ == '__main__':
current_dict['active']['netid'],
set(current_dict['active']['uaid']),
'remove', grouper_dict, delta_dict,
sync=args.sync, log=None)
sync=args.sync, log=log)
else:
log.info("All users not a member of figshare:active. No need to remove")

Expand All @@ -307,7 +307,7 @@ if __name__ == '__main__':
d = grouper_delta_user(current_portal, 'portal',
not_portal_netid[i], {not_portal_uaid[i]},
'remove', grouper_dict, delta_dict,
sync=args.sync, log=None)
sync=args.sync, log=log)

# Add to new portal group
if vargs['portal'] != 'root':
Expand All @@ -317,7 +317,7 @@ if __name__ == '__main__':
current_dict['not_portal']['netid'],
current_dict['not_portal']['uaid'],
'add', grouper_dict, delta_dict, mo=mo,
sync=args.sync, log=None)
sync=args.sync, log=log)
else:
# Remove entry from manual CSV file for 'root' case
if args.sync:
Expand Down Expand Up @@ -347,7 +347,7 @@ if __name__ == '__main__':
d = grouper_delta_user(current_quota, 'quota',
not_quota_netid[i], {not_quota_uaid[i]},
'remove', grouper_dict, delta_dict,
sync=args.sync, log=None)
sync=args.sync, log=log)

# Add to new quota group
if vargs['quota'] != 'root':
Expand All @@ -357,7 +357,7 @@ if __name__ == '__main__':
current_dict['not_quota']['netid'],
current_dict['not_quota']['uaid'],
'add', grouper_dict, delta_dict,
mo=mo, sync=args.sync, log=None)
mo=mo, sync=args.sync, log=log)
else:
# Remove entry from manual CSV file for 'root' case
if args.sync:
Expand Down

0 comments on commit e13b6b4

Please sign in to comment.