Merge pull request #1221 from jumpserver/dev

[Bugfix] 修复用户错误storage的bug
pull/2666/head
老广 7 years ago committed by GitHub
commit a0a8419c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,9 +22,7 @@ def get_terminal_command_store():
storage = get_command_store()
else:
if not TYPE_ENGINE_MAPPING.get(tp):
raise AssertionError("Command storage type should in {}".format(
', '.join(TYPE_ENGINE_MAPPING.keys()))
)
continue
engine_class = import_module(TYPE_ENGINE_MAPPING[tp])
storage = engine_class.CommandStore(params)
storage_list[name] = storage

Loading…
Cancel
Save