feat: update

pull/1051/head^2
liuzheng712 2018-03-07 17:18:56 +08:00
parent d1a2fe145d
commit 9aed73d644
No known key found for this signature in database
GPG Key ID: 76B55D91E7BB2978
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ class SessionReplayViewSet(viewsets.ViewSet):
config = self.app.config.get("REPLAY_STORAGE", None)
if config:
for name in config.keys():
if config[name] == "s3":
if config[name].get("TYPE", '') == "s3":
client, bucket = self.s3Client(config[name])
try:
client.head_object(Bucket=bucket, Key=path)