Skip to content

Commit

Permalink
Leading slash from rootpath is removed (#497)
Browse files Browse the repository at this point in the history
Signed-off-by: “gifi-siby” <[email protected]>
  • Loading branch information
gifi-siby authored Jan 9, 2025
1 parent 99bd5ce commit e252cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/paramtable/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package paramtable

import (
"strconv"
"strings"
)

// BackupParams
Expand Down Expand Up @@ -286,7 +287,7 @@ func (p *MinioConfig) initBucketName() {

func (p *MinioConfig) initRootPath() {
rootPath := p.Base.LoadWithDefault("minio.rootPath", DefaultMinioRootPath)
p.RootPath = rootPath
p.RootPath = strings.TrimLeft(rootPath, "/")
}

func (p *MinioConfig) initUseIAM() {
Expand Down

0 comments on commit e252cfa

Please sign in to comment.