Fix credentials argument parsing (#2238)

This commit is contained in:
Krishnan Parthasarathi
2017-08-15 10:37:50 -07:00
committed by Dee Koder
parent ca96cfc6e6
commit e6ca983442
+2 -1
View File
@@ -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)