Merge pull request #569 from fluxcd/fix-https-auth

Fix create secret for Git over HTTP/S
pull/576/head
Stefan Prodan 4 years ago committed by GitHub
commit 12146eda8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -142,7 +142,7 @@ func createSecretGitCmdRun(cmd *cobra.Command, args []string) error {
logger.Generatef("deploy key: %s", string(pair.PublicKey)) logger.Generatef("deploy key: %s", string(pair.PublicKey))
} }
case "http", "https": case "http", "https":
if sourceGitUsername == "" || sourceGitPassword == "" { if secretGitUsername == "" || secretGitPassword == "" {
return fmt.Errorf("for Git over HTTP/S the username and password are required") return fmt.Errorf("for Git over HTTP/S the username and password are required")
} }

Loading…
Cancel
Save