Skip to content

Commit

Permalink
Use s3.NormalizeBucketLocation on GetBucketLocationResponse.GetBucket…
Browse files Browse the repository at this point in the history
…LocationResponse (#28257)
  • Loading branch information
Andrea Spacca authored Oct 6, 2021
1 parent c3cb365 commit c8db738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/awss3/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,5 @@ func getRegionForBucketARN(ctx context.Context, s3Client *s3.Client, bucketARN s
return "", err
}

return string(resp.LocationConstraint), nil
return string(s3.NormalizeBucketLocation(resp.LocationConstraint)), nil
}

0 comments on commit c8db738

Please sign in to comment.