mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix(be): use --become-user for become creds
This commit is contained in:
parent
04986c97f6
commit
f353de742d
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user