Skip to content

Commit

Permalink
To remove all leading slashes from minio rootPath
Browse files Browse the repository at this point in the history
Signed-off-by: Gifi Siby <Gifi.S@ibm.com>
  • Loading branch information
gifi-siby committed Oct 17, 2024
1 parent 99e51a0 commit 620f3ee
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 620f3ee

Please sign in to comment.