fix: AttributeError: 'SessionReplayViewSet' object has no attribute 'ACCESS_KEY'

pull/1053/head
liuzheng712 2018-03-07 22:05:50 +08:00
parent 3c32048aa8
commit 51d7e51119
No known key found for this signature in database
GPG Key ID: 76B55D91E7BB2978
1 changed files with 1 additions and 1 deletions

View File

@ -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,