From 5069c793cf32d21fa777528a3c4298d784c84f93 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 20 Sep 2023 16:33:20 +0200 Subject: [PATCH] change result as json --- .../modules/oidc/commands/add_contract_oidc.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/modules/oidc/commands/add_contract_oidc.py b/ereuse_devicehub/modules/oidc/commands/add_contract_oidc.py index 6abcf6f5..8963d515 100644 --- a/ereuse_devicehub/modules/oidc/commands/add_contract_oidc.py +++ b/ereuse_devicehub/modules/oidc/commands/add_contract_oidc.py @@ -65,14 +65,21 @@ class AddContractOidc: logger.error(txt) return if self.member.client_id and self.member.client_secret: - result = ", ".join([self.member.client_id, self.member.client_secret]) + result = { + "client_id": self.member.client_id, + "client_secret": self.member.client_secret + } print(result) return result - result = ", ".join(self.save()) + result = self.save() + result = { + "client_id": result[0], + "client_secret": result[1] + } print(result) return result - + def save(self): client_id = gen_salt(24)