From cd87fbba0d696121965fdf6215a043ad3397cf08 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Wed, 9 Dec 2020 17:39:04 +0200 Subject: [PATCH] Fix create secret for Git over HTTP/S Signed-off-by: Stefan Prodan --- cmd/flux/create_secret_git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flux/create_secret_git.go b/cmd/flux/create_secret_git.go index b9b2587d..31d2a2ef 100644 --- a/cmd/flux/create_secret_git.go +++ b/cmd/flux/create_secret_git.go @@ -142,7 +142,7 @@ func createSecretGitCmdRun(cmd *cobra.Command, args []string) error { logger.Generatef("deploy key: %s", string(pair.PublicKey)) } case "http", "https": - if sourceGitUsername == "" || sourceGitPassword == "" { + if secretGitUsername == "" || secretGitPassword == "" { return fmt.Errorf("for Git over HTTP/S the username and password are required") }