From c8108dace0f4c2df978f086df894361e33f3c9db Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Sun, 2 Feb 2025 08:49:24 -0800 Subject: [PATCH] Fixed bug in `gam update resoldcustomer` #1743 --- src/GamUpdate.txt | 7 +++++++ src/gam/__init__.py | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index 8d853e5a..ef7740f4 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,10 @@ +7.03.03 + +Fixed bug in `gam update resoldcustomer` that caused the following error: +``` +ERROR: Got an unexpected keyword argument customerAuthToken +``` + 7.03.02 Updated `gam show labels nested` to properly display label nesting diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 25a58aac..66e66b66 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.03.02' +__version__ = '7.03.03' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -15110,11 +15110,11 @@ def doCreateResoldCustomer(): def doUpdateResoldCustomer(): res = buildGAPIObject(API.RESELLER) customerId = getString(Cmd.OB_CUSTOMER_ID) - customerAuthToken, body = _getResoldCustomerAttr() + _, body = _getResoldCustomerAttr() try: callGAPI(res.customers(), 'patch', throwReasons=GAPI.RESELLER_THROW_REASONS, - customerId=customerId, body=body, customerAuthToken=customerAuthToken, fields='') + customerId=customerId, body=body, fields='') entityActionPerformed([Ent.CUSTOMER_ID, customerId]) except (GAPI.badRequest, GAPI.resourceNotFound, GAPI.forbidden, GAPI.invalid) as e: entityActionFailedWarning([Ent.CUSTOMER_ID, customerId], str(e))