Skip to content

Commit

Permalink
fix(be): use --become-user for become creds
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Apr 8, 2024
1 parent 04986c9 commit f353de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/tasks/LocalJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (t *LocalJob) getPlaybookArgs(username string, incomingVersion *string) (ar
switch t.Inventory.BecomeKey.Type {
case db.AccessKeyLoginPassword:
if t.becomeKeyInstallation.Login != "" {
args = append(args, "--user", t.becomeKeyInstallation.Login)
args = append(args, "--become-user", t.becomeKeyInstallation.Login)
}
if t.becomeKeyInstallation.Password != "" {
args = append(args, "--ask-become-pass")
Expand Down

0 comments on commit f353de7

Please sign in to comment.