From 702c85634986dbf5f348a1749433507592594622 Mon Sep 17 00:00:00 2001 From: Michael Tibben Date: Fri, 23 Jun 2017 22:33:22 +1000 Subject: [PATCH] Normalise the bucket location --- iamy/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iamy/s3.go b/iamy/s3.go index c8f40af..30fd2ff 100644 --- a/iamy/s3.go +++ b/iamy/s3.go @@ -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