mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-09 17:27:28 +00:00
Merge pull request #569 from fluxcd/fix-https-auth
Fix create secret for Git over HTTP/S
This commit is contained in:
commit
12146eda8c
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue