Skip to content

Commit

Permalink
Normalise the bucket location
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Jun 23, 2017
1 parent d2c4804 commit 702c856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iamy/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (c *s3Client) populateBucket(b *bucket) error {
return err
}

region := normaliseString(r.LocationConstraint)
region := s3.NormalizeBucketLocation(normaliseString(r.LocationConstraint))
b.policyJson, err = c.GetBucketPolicyDoc(b.name, region)

return err
Expand Down

0 comments on commit 702c856

Please sign in to comment.