commands
This commit is contained in:
parent
7ddcb8ead0
commit
52da9c99ba
|
@ -29,7 +29,7 @@ from ereuse_devicehub.teal.teal import Teal
|
||||||
from ereuse_devicehub.templating import Environment
|
from ereuse_devicehub.templating import Environment
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from ereuse_devicehub.modules.commands.sync_dlt import GetMembers
|
from ereuse_devicehub.modules.oidc.commands.sync_dlt import GetMembers
|
||||||
except Exception:
|
except Exception:
|
||||||
GetMembers = None
|
GetMembers = None
|
||||||
|
|
||||||
|
@ -44,10 +44,15 @@ except Exception:
|
||||||
AddMember = None
|
AddMember = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from ereuse_devicehub.modules.oidc.commands.add_member import AddClientOidc
|
from ereuse_devicehub.modules.oidc.commands.client_member import AddClientOidc
|
||||||
except Exception:
|
except Exception:
|
||||||
AddClientOidc = None
|
AddClientOidc = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
from ereuse_devicehub.modules.oidc.commands.insert_member_in_dlt import InsertMember
|
||||||
|
except Exception:
|
||||||
|
InsertMembe = None
|
||||||
|
|
||||||
|
|
||||||
class Devicehub(Teal):
|
class Devicehub(Teal):
|
||||||
test_client_class = Client
|
test_client_class = Client
|
||||||
|
@ -106,6 +111,8 @@ class Devicehub(Teal):
|
||||||
self.register_user_dlt = AddMember(self)
|
self.register_user_dlt = AddMember(self)
|
||||||
if AddClientOidc:
|
if AddClientOidc:
|
||||||
self.register_user_dlt = AddClientOidc(self)
|
self.register_user_dlt = AddClientOidc(self)
|
||||||
|
if InsertMember:
|
||||||
|
self.register_user_dlt = InsertMember(self)
|
||||||
|
|
||||||
@self.cli.group(
|
@self.cli.group(
|
||||||
short_help='Inventory management.',
|
short_help='Inventory management.',
|
||||||
|
|
Reference in a new issue