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 c270122 commit 7733e33Copy full SHA for 7733e33
pbm/config/config.go
@@ -309,10 +309,14 @@ func (s *StorageConf) Path() string {
309
switch s.Type {
310
case storage.S3:
311
path = s.S3.EndpointURL
312
- if !strings.Contains(path, "://") {
313
- path = "s3://" + path
+ if path == "" {
+ path = "s3://" + s.S3.Bucket
314
+ } else {
315
+ if !strings.Contains(path, "://") {
316
+ path = "s3://" + path
317
+ }
318
+ path += "/" + s.S3.Bucket
319
}
- path += "/" + s.S3.Bucket
320
if s.S3.Prefix != "" {
321
path += "/" + s.S3.Prefix
322
0 commit comments