Skip to content

Commit

Permalink
Ignore S3 endpoint override field when it's an empty string (#242)
Browse files Browse the repository at this point in the history
ignore endpoint override when it's nil
  • Loading branch information
korotkov-aerospike authored Oct 9, 2024
1 parent 1edc83e commit 5006ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func getS3Client(ctx context.Context, s *model.S3Storage) (*awsS3.Client, error)
}

client := awsS3.NewFromConfig(cfg, func(o *awsS3.Options) {
if s.S3EndpointOverride != nil {
if s.S3EndpointOverride != nil && *s.S3EndpointOverride != "" {
o.BaseEndpoint = s.S3EndpointOverride
}

Expand Down

0 comments on commit 5006ea7

Please sign in to comment.