Commit ad6e22cd authored by BaiJiangjie's avatar BaiJiangjie

Merge branch 'dev' of github.com:jumpserver/jumpserver into dev

parents 7a219e17 0c243105
...@@ -22,9 +22,7 @@ def get_terminal_command_store(): ...@@ -22,9 +22,7 @@ def get_terminal_command_store():
storage = get_command_store() storage = get_command_store()
else: else:
if not TYPE_ENGINE_MAPPING.get(tp): if not TYPE_ENGINE_MAPPING.get(tp):
raise AssertionError("Command storage type should in {}".format( continue
', '.join(TYPE_ENGINE_MAPPING.keys()))
)
engine_class = import_module(TYPE_ENGINE_MAPPING[tp]) engine_class = import_module(TYPE_ENGINE_MAPPING[tp])
storage = engine_class.CommandStore(params) storage = engine_class.CommandStore(params)
storage_list[name] = storage storage_list[name] = storage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment