mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 09:51:36 +00:00
"updating user..." should be in stdout, not stderr
The "updating user..." info is pumped into stderr instead of stdout - i fixed this.
This commit is contained in:
2
gam.py
2
gam.py
@@ -5189,7 +5189,7 @@ def doUpdateUser(users):
|
||||
user_domain = user_primary[user_primary.find(u'@')+1:]
|
||||
body[u'primaryEmail'] = u'vfe.%s.%05d@%s' % (user_name, random.randint(1, 99999), user_domain)
|
||||
body[u'emails'] = [{u'type': u'custom', u'customType': u'former_employee', u'primary': False, u'address': user_primary}]
|
||||
sys.stderr.write(u'updating user %s...\n' % user)
|
||||
sys.stdout.write(u'updating user %s...\n' % user)
|
||||
if do_update_user:
|
||||
callGAPI(service=cd.users(), function=u'patch', userKey=user, body=body)
|
||||
if do_admin_user:
|
||||
|
||||
Reference in New Issue
Block a user