mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
simplify no update check for customer update
This commit is contained in:
@@ -1704,12 +1704,11 @@ def doUpdateCustomer():
|
|||||||
else:
|
else:
|
||||||
print u'ERROR: %s is not a valid argument for "gam update customer"' % myarg
|
print u'ERROR: %s is not a valid argument for "gam update customer"' % myarg
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
if body:
|
if not body:
|
||||||
callGAPI(cd.customers(), u'update', customerKey=GC_Values[GC_CUSTOMER_ID], body=body)
|
|
||||||
print u'Updated customer'
|
|
||||||
else:
|
|
||||||
print u'ERROR: no arguments specified for "gam update customer"'
|
print u'ERROR: no arguments specified for "gam update customer"'
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
callGAPI(cd.customers(), u'update', customerKey=GC_Values[GC_CUSTOMER_ID], body=body)
|
||||||
|
print u'Updated customer'
|
||||||
|
|
||||||
def doDelDomain():
|
def doDelDomain():
|
||||||
cd = buildGAPIObject(u'directory')
|
cd = buildGAPIObject(u'directory')
|
||||||
|
|||||||
Reference in New Issue
Block a user