From bb6c8dc225b6a9fe93c99c5a445836ce24dc9e43 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 14 Nov 2022 20:49:30 +0000 Subject: [PATCH] more debug for orgunits on windows --- src/gam/gapi/directory/orgunits.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gam/gapi/directory/orgunits.py b/src/gam/gapi/directory/orgunits.py index dc500051..92e1cbcb 100644 --- a/src/gam/gapi/directory/orgunits.py +++ b/src/gam/gapi/directory/orgunits.py @@ -37,7 +37,9 @@ def _getAllParentOrgUnitsForUser(user, cd=None): def create(): cd = gapi_directory.build() + print(f'sys.arg: {sys.argv[3]}') name = getOrgUnitItem(sys.argv[3], pathOnly=True, absolutePath=False) + print(f'name: {name}') parent = '' body = {} i = 4 @@ -67,6 +69,7 @@ def create(): orgUnitPath = parent + name else: orgUnitPath = parent + '/' + name + print(f'orgunitPath: {orgUnitPath}') if orgUnitPath.count('/') > 1: body['parentOrgUnitPath'], body['name'] = orgUnitPath.rsplit('/', 1) else: @@ -74,7 +77,7 @@ def create(): body['name'] = orgUnitPath[1:] parent = body['parentOrgUnitPath'] print('DEBUG DEBUG DEBUG') - print(body) + print(f'body: {body}') gapi.call(cd.orgunits(), 'insert', customerId=GC_Values[GC_CUSTOMER_ID],