mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-19 17:26:52 +00:00
Merge branch 'dev' of bitbucket.org:jumpserver/core into dev
This commit is contained in:
commit
634af19945
@ -288,7 +288,7 @@ class SessionReplayViewSet(viewsets.ViewSet):
|
|||||||
for name, config in configs:
|
for name, config in configs:
|
||||||
client = jms_storage.init(config)
|
client = jms_storage.init(config)
|
||||||
date = self.session.date_start.strftime('%Y-%m-%d')
|
date = self.session.date_start.strftime('%Y-%m-%d')
|
||||||
if client.has_file(os.path.join(date, str(self.session.id) + '.replay.gz')) \
|
if client and client.has_file(os.path.join(date, str(self.session.id) + '.replay.gz')) \
|
||||||
and \
|
and \
|
||||||
client.download_file(os.path.join(date, str(self.session.id) + '.replay.gz'),
|
client.download_file(os.path.join(date, str(self.session.id) + '.replay.gz'),
|
||||||
default_storage.base_location + '/' + path):
|
default_storage.base_location + '/' + path):
|
||||||
|
Loading…
Reference in New Issue
Block a user