mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 13:43:35 +00:00
Handle invalid argument in gam print admins
This commit is contained in:
@ -1618,6 +1618,9 @@ def doPrintAdmins():
|
|||||||
print u'ERROR: %s is not a valid role' % role
|
print u'ERROR: %s is not a valid role' % role
|
||||||
sys.exit(5)
|
sys.exit(5)
|
||||||
i += 2
|
i += 2
|
||||||
|
else:
|
||||||
|
print u'ERROR: %s is not a valid argument for "gam print admins".' % sys.argv[i]
|
||||||
|
sys.exit(2)
|
||||||
admins = callGAPIpages(service=cd.roleAssignments(), function=u'list',
|
admins = callGAPIpages(service=cd.roleAssignments(), function=u'list',
|
||||||
customer=GC_Values[GC_CUSTOMER_ID], userKey=userKey, roleId=roleId, maxResults=200)
|
customer=GC_Values[GC_CUSTOMER_ID], userKey=userKey, roleId=roleId, maxResults=200)
|
||||||
admins_attrib = [{}]
|
admins_attrib = [{}]
|
||||||
|
Reference in New Issue
Block a user