Skip to content

Commit

Permalink
handle default region for S3 bucket in assertion/value.go
Browse files Browse the repository at this point in the history
  • Loading branch information
lhitchon committed Oct 10, 2018
1 parent 0b97cbd commit d7a4868
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assertion/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func getBucketRegion(bucket string) (string, error) {
if err != nil {
return "us-east-1", err
}
if location.LocationConstraint == nil {
// default region is us-east-1
return "us-east-1", nil
}
return *location.LocationConstraint, nil
}

Expand Down

0 comments on commit d7a4868

Please sign in to comment.