simplify no update check for customer update

This commit is contained in:
Jay Lee
2017-09-19 18:52:30 -04:00
parent 875879caed
commit 3bf5ffeb99

View File

@ -1704,12 +1704,11 @@ def doUpdateCustomer():
else:
print u'ERROR: %s is not a valid argument for "gam update customer"' % myarg
sys.exit(2)
if body:
callGAPI(cd.customers(), u'update', customerKey=GC_Values[GC_CUSTOMER_ID], body=body)
print u'Updated customer'
else:
if not body:
print u'ERROR: no arguments specified for "gam update customer"'
sys.exit(2)
callGAPI(cd.customers(), u'update', customerKey=GC_Values[GC_CUSTOMER_ID], body=body)
print u'Updated customer'
def doDelDomain():
cd = buildGAPIObject(u'directory')