From 52da9c99ba2b58a745d4c41b002c3ae0860acedb Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 16 Jun 2023 09:31:16 +0200 Subject: [PATCH] commands --- ereuse_devicehub/devicehub.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/devicehub.py b/ereuse_devicehub/devicehub.py index b211ef52..bf24b220 100644 --- a/ereuse_devicehub/devicehub.py +++ b/ereuse_devicehub/devicehub.py @@ -29,7 +29,7 @@ from ereuse_devicehub.teal.teal import Teal from ereuse_devicehub.templating import Environment try: - from ereuse_devicehub.modules.commands.sync_dlt import GetMembers + from ereuse_devicehub.modules.oidc.commands.sync_dlt import GetMembers except Exception: GetMembers = None @@ -44,10 +44,15 @@ except Exception: AddMember = None try: - from ereuse_devicehub.modules.oidc.commands.add_member import AddClientOidc + from ereuse_devicehub.modules.oidc.commands.client_member import AddClientOidc except Exception: AddClientOidc = None +try: + from ereuse_devicehub.modules.oidc.commands.insert_member_in_dlt import InsertMember +except Exception: + InsertMembe = None + class Devicehub(Teal): test_client_class = Client @@ -106,6 +111,8 @@ class Devicehub(Teal): self.register_user_dlt = AddMember(self) if AddClientOidc: self.register_user_dlt = AddClientOidc(self) + if InsertMember: + self.register_user_dlt = InsertMember(self) @self.cli.group( short_help='Inventory management.',