Remove trailing slash for mc admin bucket remote ls (#3506)

if any, after alias/bucket
This commit is contained in:
Poorna Krishnamoorthy
2020-11-25 13:12:43 -08:00
committed by GitHub
parent df5f03a109
commit 060b0762fb
+2 -1
View File
@@ -18,6 +18,7 @@ package cmd
import (
"fmt"
"path/filepath"
"github.com/fatih/color"
"github.com/minio/cli"
@@ -84,8 +85,8 @@ func mainAdminBucketRemoteList(ctx *cli.Context) error {
// Get the alias parameter from cli
args := ctx.Args()
aliasedURL := args.Get(0)
aliasedURL = filepath.Clean(aliasedURL)
_, sourceBucket := url2Alias(aliasedURL)
// Create a new MinIO Admin Client
client, err := newAdminClient(aliasedURL)
fatalIf(err, "Unable to initialize admin connection.")