We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d085027 commit 0ae6809Copy full SHA for 0ae6809
1 file changed
s3/storager.go
@@ -144,7 +144,7 @@ func (s *storager) adjustRegionIfNeeded() {
144
s.S3 = s3.New(session.New(), s.config)
145
}
146
} else if s.config != nil {
147
- if s.config.Region != nil && *s.config.Region != awsDefaultRegion {
+ if s.config.Region == nil || (s.config.Region != nil && *s.config.Region != awsDefaultRegion) {
148
s.config.Region = &awsDefaultRegion
149
150
0 commit comments