Merge pull request #2254 from jumpserver/dev

Dev
pull/2328/head
老广 2018-12-21 15:58:56 +08:00 committed by GitHub
commit 67b21f0489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -391,6 +391,8 @@ def get_request_ip(request):
def get_command_storage_setting():
default = settings.DEFAULT_TERMINAL_COMMAND_STORAGE
value = settings.TERMINAL_COMMAND_STORAGE
if not value:
return default
value.update(default)
return value
@ -398,6 +400,8 @@ def get_command_storage_setting():
def get_replay_storage_setting():
default = settings.DEFAULT_TERMINAL_REPLAY_STORAGE
value = settings.TERMINAL_REPLAY_STORAGE
if not value:
return default
value.update(default)
return value