From e13b6b4e805d730b08ece70f9906402b63eef545 Mon Sep 17 00:00:00 2001 From: Chun Ly Date: Wed, 30 Sep 2020 11:32:15 -0700 Subject: [PATCH] user_update: Fix typo in passing log to grouper_delta_user #57 --- scripts/user_update | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/user_update b/scripts/user_update index b46f0d20..401d65d3 100644 --- a/scripts/user_update +++ b/scripts/user_update @@ -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: @@ -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") @@ -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': @@ -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: @@ -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': @@ -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: