From 3a30e6e8c5ea10e001b3d84785756f5e81b0c413 Mon Sep 17 00:00:00 2001 From: AbdelwahabAdam Date: Mon, 14 Nov 2022 08:00:10 -0800 Subject: [PATCH] fix:jans-cli Error on Get-Clients (ref: #2976) --- jans-cli-tui/cli_tui/plugins/010_oxauth/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jans-cli-tui/cli_tui/plugins/010_oxauth/main.py b/jans-cli-tui/cli_tui/plugins/010_oxauth/main.py index f08077dfc51..5fe35925a32 100755 --- a/jans-cli-tui/cli_tui/plugins/010_oxauth/main.py +++ b/jans-cli-tui/cli_tui/plugins/010_oxauth/main.py @@ -256,11 +256,16 @@ async def coroutine(): data =[] + file1 = open("hopa.log", "w") + file1.write(str(response.status_code)+'\n') + file1.write(str(response.json())) + file1.close() + for d in result.get('entries', []): data.append( [ d['inum'], - d.get('clientName', {}).get('values', {}).get('', ''), + d.get('clientName', ''), ','.join(d.get('grantTypes', [])), d.get('subjectType', '') ]