Skip to content

Commit

Permalink
user_update: log messages on not updating dataframe when sync false
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Jul 27, 2020
1 parent e5e5f16 commit 3e3b765
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion requiam/user_update
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,13 @@ if __name__ == '__main__':
mo.update_dataframe(vargs['netid'], user_uaid, vargs['portal'], 'portal')
else:
log.info('dry run, not performing synchronization')
log.info('dry run, not updating portal dataframe')
else:
# Remove entry from manual CSV file for 'root' case
if args.sync:
mo.update_dataframe(vargs['netid'], user_uaid, vargs['portal'], 'portal')
else:
log.info('dry run, not updating dataframe')
log.info('dry run, not updating portal dataframe')

# Quota update
if vargs['quota'] != '(unset)':
Expand Down Expand Up @@ -206,3 +207,4 @@ if __name__ == '__main__':
mo.update_dataframe(vargs['netid'], user_uaid, vargs['quota'], 'quota')
else:
log.info('dry run, not performing synchronization')
log.info('dry run, not updating quota dataframe')

0 comments on commit 3e3b765

Please sign in to comment.