From e6ca9834422638b5bac47eae7cbdbffe65c10e78 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Tue, 15 Aug 2017 10:37:50 -0700 Subject: [PATCH] Fix credentials argument parsing (#2238) --- cmd/admin-credentials.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/admin-credentials.go b/cmd/admin-credentials.go index 32d33b95..3ba7b3b9 100644 --- a/cmd/admin-credentials.go +++ b/cmd/admin-credentials.go @@ -66,7 +66,8 @@ func mainAdminCreds(ctx *cli.Context) error { // TODO: if accessKey and secretKey are not supplied we should // display the existing credentials. This needs GetCredentials // support from Minio server. - accessKey, secretKey, aliasedURL := args.Get(0), args.Get(1), args.Get(2) + aliasedURL := args.First() + accessKey, secretKey := args.Get(1), args.Get(2) // Create a new Minio Admin Client client, err := newAdminClient(aliasedURL)