Allow bucket creation in different regions, closes #4287 and #4241

* I needed to remove the region check from PutBucketHandler
This commit is contained in:
Remco Verhoef authored and Harshavardhana committed 2017-06-16 15:02:07 -07:00
1 parent 8085ba4494
commit d86973dcca
2 files changed
-14

No files matched your search

-5
View File
@@ -229,11 +229,6 @@ func (l *gcsGateway) MakeBucket(bucket string) error {
func (l *gcsGateway) MakeBucketWithLocation(bucket, location string) error {
bkt := l.client.Bucket(bucket)
// we'll default to the us multi-region in case of us-east-1
if location == "us-east-1" {
location = "us"
}
if err := bkt.Create(l.ctx, l.projectID, &storage.BucketAttrs{
Location: location,
}); err != nil {