From 7f1bd778dcc6990465987ebd9938d024f9fa9c06 Mon Sep 17 00:00:00 2001 From: Will Giddens Date: Wed, 2 Mar 2016 14:27:46 -0500 Subject: [PATCH] took out asserts When running on EC2 the AWS_* variables are set implicitly by IAM. They aren't required. --- dj_elastictranscoder/transcoder.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/dj_elastictranscoder/transcoder.py b/dj_elastictranscoder/transcoder.py index 6d77f75..e2f4d5f 100644 --- a/dj_elastictranscoder/transcoder.py +++ b/dj_elastictranscoder/transcoder.py @@ -23,15 +23,6 @@ def __init__(self, pipeline_id, region=None, access_key_id=None, secret_access_k secret_access_key = getattr(settings, 'AWS_SECRET_ACCESS_KEY', None) self.aws_secret_access_key = secret_access_key - if self.aws_access_key_id is None: - assert False, 'Please provide AWS_ACCESS_KEY_ID' - - if self.aws_secret_access_key is None: - assert False, 'Please provide AWS_SECRET_ACCESS_KEY' - - if self.aws_region is None: - assert False, 'Please provide AWS_REGION' - boto_session = Session( aws_access_key_id=self.aws_access_key_id, aws_secret_access_key=self.aws_secret_access_key,