From 51d7e511199af4a8205eafa23f9630eb8b2d7c62 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Wed, 7 Mar 2018 22:05:50 +0800 Subject: [PATCH] fix: AttributeError: 'SessionReplayViewSet' object has no attribute 'ACCESS_KEY' --- apps/terminal/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal/api.py b/apps/terminal/api.py index 06a84e9e8..da0e88820 100644 --- a/apps/terminal/api.py +++ b/apps/terminal/api.py @@ -300,7 +300,7 @@ class SessionReplayViewSet(viewsets.ViewSet): REGION = config.get("REGION", None) ACCESS_KEY = config.get("ACCESS_KEY", None) SECRET_KEY = config.get("SECRET_KEY", None) - if self.ACCESS_KEY and REGION and SECRET_KEY: + if ACCESS_KEY and REGION and SECRET_KEY: s3 = boto3.client('s3', region_name=REGION, aws_access_key_id=ACCESS_KEY,