jumpserver/apps/terminal/backends/__init__.py

11 lines
299 B
Python
Raw Normal View History

2017-11-29 11:27:04 +00:00
from importlib import import_module
from django.conf import settings
from .command.serializers import SessionCommandSerializer
def get_command_store():
2017-12-21 10:54:29 +00:00
command_engine = import_module(settings.COMMAND_STORAGE_BACKEND)
2017-11-29 11:27:04 +00:00
command_store = command_engine.CommandStore()
return command_store