Skip to content

Commit 0ae6809

Browse files
committed
patched bucket detection
1 parent d085027 commit 0ae6809

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

s3/storager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (s *storager) adjustRegionIfNeeded() {
144144
s.S3 = s3.New(session.New(), s.config)
145145
}
146146
} else if s.config != nil {
147-
if s.config.Region != nil && *s.config.Region != awsDefaultRegion {
147+
if s.config.Region == nil || (s.config.Region != nil && *s.config.Region != awsDefaultRegion) {
148148
s.config.Region = &awsDefaultRegion
149149
s.S3 = s3.New(session.New(), s.config)
150150
}

0 commit comments

Comments
 (0)