From e252cfa156855aceabcb15c4948052ceab2af570 Mon Sep 17 00:00:00 2001 From: Gifi Siby Date: Thu, 9 Jan 2025 09:10:10 +0530 Subject: [PATCH] Leading slash from rootpath is removed (#497) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “gifi-siby” --- core/paramtable/params.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/paramtable/params.go b/core/paramtable/params.go index 7a20f7e..210974c 100644 --- a/core/paramtable/params.go +++ b/core/paramtable/params.go @@ -2,6 +2,7 @@ package paramtable import ( "strconv" + "strings" ) // BackupParams @@ -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() {