Skip to content

Commit

Permalink
Merge pull request #38 from gleeco/check-aws-default-region
Browse files Browse the repository at this point in the history
fix: check for aws default region
  • Loading branch information
bcavagnolo authored May 10, 2017
2 parents 9fc015c + b74f0bd commit 7840761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalake/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _s3_key_from_metadata(self, f):

@property
def _s3_host(self):
r = environ.get('AWS_REGION')
r = environ.get('AWS_REGION') or environ.get('AWS_DEFAULT_REGION')
if r is not None:
return 's3-' + r + '.amazonaws.com'
else:
Expand Down

0 comments on commit 7840761

Please sign in to comment.