Skip to content

Commit

Permalink
user_update: Additional log message #72
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Oct 5, 2020
1 parent bd937dc commit d360c3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/user_update
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ if __name__ == '__main__':
main_stem = figshare_stem('', production=grouper_production)
log.info(f"Main stem: {main_stem}")

log.info("ACTIVE STAGE")
# figshare:active or figtest:active update
if not vargs['active_remove']:
if len(current_dict['not_active']['netid']) > 0:
Expand Down Expand Up @@ -316,6 +317,7 @@ if __name__ == '__main__':

# Portal update
if vargs['portal'] != '(unset)':
log.info("PORTAL STAGE")
if len(current_dict['not_portal']['netid']) == 0:
log.warning(f"All users are member of {main_stem}:portal:{vargs['portal']}. No need to add")
else:
Expand Down Expand Up @@ -361,6 +363,7 @@ if __name__ == '__main__':

# Quota update
if vargs['quota'] != '(unset)':
log.info("QUOTA STAGE")
if len(current_dict['not_quota']['netid']) == 0:
log.warning(f"All users are member of {main_stem}:quota:{vargs['quota']}. No need to add")
else:
Expand Down

0 comments on commit d360c3f

Please sign in to comment.