mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-29 18:31:38 +00:00
remove debug
This commit is contained in:
@@ -11701,7 +11701,7 @@ def ProcessGAMCommand(args):
|
|||||||
gapi_cloudidentity_inboundsso.delete_profile()
|
gapi_cloudidentity_inboundsso.delete_profile()
|
||||||
elif argument in ['nickname', 'alias']:
|
elif argument in ['nickname', 'alias']:
|
||||||
doDeleteAlias()
|
doDeleteAlias()
|
||||||
elif argument == 'org':
|
elif argument in ['org', 'ou', 'orgunit']:
|
||||||
gapi_directory_orgunits.delete()
|
gapi_directory_orgunits.delete()
|
||||||
elif argument in ['inboundssocredential', 'inboundssocredentials']:
|
elif argument in ['inboundssocredential', 'inboundssocredentials']:
|
||||||
gapi_cloudidentity_inboundsso.delete_credentials()
|
gapi_cloudidentity_inboundsso.delete_credentials()
|
||||||
|
|||||||
@@ -37,9 +37,7 @@ def _getAllParentOrgUnitsForUser(user, cd=None):
|
|||||||
|
|
||||||
def create():
|
def create():
|
||||||
cd = gapi_directory.build()
|
cd = gapi_directory.build()
|
||||||
print(f'sys.arg: {sys.argv[3]}')
|
|
||||||
name = getOrgUnitItem(sys.argv[3], pathOnly=True, absolutePath=False)
|
name = getOrgUnitItem(sys.argv[3], pathOnly=True, absolutePath=False)
|
||||||
print(f'name: {name}')
|
|
||||||
parent = ''
|
parent = ''
|
||||||
body = {}
|
body = {}
|
||||||
i = 4
|
i = 4
|
||||||
@@ -69,15 +67,12 @@ def create():
|
|||||||
orgUnitPath = parent + name
|
orgUnitPath = parent + name
|
||||||
else:
|
else:
|
||||||
orgUnitPath = parent + '/' + name
|
orgUnitPath = parent + '/' + name
|
||||||
print(f'orgunitPath: {orgUnitPath}')
|
|
||||||
if orgUnitPath.count('/') > 1:
|
if orgUnitPath.count('/') > 1:
|
||||||
body['parentOrgUnitPath'], body['name'] = orgUnitPath.rsplit('/', 1)
|
body['parentOrgUnitPath'], body['name'] = orgUnitPath.rsplit('/', 1)
|
||||||
else:
|
else:
|
||||||
body['parentOrgUnitPath'] = '/'
|
body['parentOrgUnitPath'] = '/'
|
||||||
body['name'] = orgUnitPath[1:]
|
body['name'] = orgUnitPath[1:]
|
||||||
parent = body['parentOrgUnitPath']
|
parent = body['parentOrgUnitPath']
|
||||||
print('DEBUG DEBUG DEBUG')
|
|
||||||
print(f'body: {body}')
|
|
||||||
gapi.call(cd.orgunits(),
|
gapi.call(cd.orgunits(),
|
||||||
'insert',
|
'insert',
|
||||||
customerId=GC_Values[GC_CUSTOMER_ID],
|
customerId=GC_Values[GC_CUSTOMER_ID],
|
||||||
|
|||||||
Reference in New Issue
Block a user