Skip to content

Commit

Permalink
patched bucket detection
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Dec 16, 2021
1 parent d085027 commit 0ae6809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3/storager.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (s *storager) adjustRegionIfNeeded() {
s.S3 = s3.New(session.New(), s.config)
}
} else if s.config != nil {
if s.config.Region != nil && *s.config.Region != awsDefaultRegion {
if s.config.Region == nil || (s.config.Region != nil && *s.config.Region != awsDefaultRegion) {
s.config.Region = &awsDefaultRegion
s.S3 = s3.New(session.New(), s.config)
}
Expand Down

0 comments on commit 0ae6809

Please sign in to comment.