Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #321 from nivintw/master
Browse files Browse the repository at this point in the history
Fix pypicloud breaking when storage.region_name = "us-east-1"
  • Loading branch information
stevearc authored Oct 4, 2022
2 parents dbe27be + 92442c8 commit 3016cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypicloud/storage/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def verify_value(val):
if e.response["Error"]["Code"] == "404":
LOG.info("Creating S3 bucket %s", bucket_name)

if config.region_name:
if config.region_name and config.region_name != "us-east-1":
location = {"LocationConstraint": config.region_name}
bucket.create(CreateBucketConfiguration=location)
else:
Expand Down

0 comments on commit 3016cc9

Please sign in to comment.