From 2b460da1d54944c5c16ef15e966843b00f06aa63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 12 Mar 2018 18:16:22 +0000 Subject: Fix saml users.json parameter (#8435) --- cmd/platform/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/platform/user.go b/cmd/platform/user.go index e2a8c9748..edbccb164 100644 --- a/cmd/platform/user.go +++ b/cmd/platform/user.go @@ -510,7 +510,7 @@ func migrateAuthToLdapCmdF(cmd *cobra.Command, args []string) error { } fromAuth := args[0] - matchField := args[1] + matchField := args[2] if len(fromAuth) == 0 || (fromAuth != "email" && fromAuth != "gitlab" && fromAuth != "saml") { return errors.New("Invalid from_auth argument") @@ -551,7 +551,7 @@ func migrateAuthToSamlCmdF(cmd *cobra.Command, args []string) error { matchesFile := "" matches := map[string]string{} if !autoFlag { - matchesFile = args[1] + matchesFile = args[2] file, e := ioutil.ReadFile(matchesFile) if e != nil { -- cgit v1.2.3-1-g7c22