Skip to content

Commit

Permalink
aws: properly get Region value from config
Browse files Browse the repository at this point in the history
Fixes iterative#556

Signed-off-by: Ruslan Kuprieiev <[email protected]>
  • Loading branch information
efiop committed Mar 16, 2018
1 parent 2447415 commit 06ff91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/cloud/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def aws_region_host(self):
See notes http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
"""

region = self._cloud_settings.cloud_config['Region']
region = self._cloud_settings.cloud_config.get('Region', None)
if region is None or region == '':
return 's3.amazonaws.com'
if region == 'us-east-1':
Expand Down

0 comments on commit 06ff91a

Please sign in to comment.