mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 14:13:35 +00:00
Only build object if necessary
This commit is contained in:
@ -7089,10 +7089,10 @@ def doGetInstanceInfo():
|
||||
geturl(url, target_file)
|
||||
sys.exit(0)
|
||||
print u'Google Apps Domain: %s' % (GC_Values[GC_DOMAIN])
|
||||
cd = buildGAPIObject(u'directory')
|
||||
if GC_Values[GC_CUSTOMER_ID] != MY_CUSTOMER:
|
||||
customerId = GC_Values[GC_CUSTOMER_ID]
|
||||
else:
|
||||
cd = buildGAPIObject(u'directory')
|
||||
result = callGAPI(cd.users(), u'list',
|
||||
fields=u'users(customerId)', customer=GC_Values[GC_CUSTOMER_ID], maxResults=1)
|
||||
try:
|
||||
|
Reference in New Issue
Block a user