Skip to content

Commit

Permalink
fix(secrets): become password value
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Apr 5, 2024
1 parent 8401845 commit 40151c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/tasks/LocalJob.go
Expand Up @@ -227,12 +227,12 @@ func (t *LocalJob) getPlaybookArgs(username string, incomingVersion *string) (ar
if t.Inventory.BecomeKeyID != nil {
switch t.Inventory.BecomeKey.Type {
case db.AccessKeyLoginPassword:
if t.sshKeyInstallation.Login != "" {
if t.becomeKeyInstallation.Login != "" {
args = append(args, "--user", t.becomeKeyInstallation.Login)
}
if t.becomeKeyInstallation.Password != "" {
args = append(args, "--ask-become-pass")
inputMap[db.AccessKeyRoleAnsibleBecomeUser] = t.sshKeyInstallation.Password
inputMap[db.AccessKeyRoleAnsibleBecomeUser] = t.becomeKeyInstallation.Password
}
case db.AccessKeyNone:
default:
Expand Down

0 comments on commit 40151c7

Please sign in to comment.