Merge pull request #7774 from davidhao3300/patch-2
Make salt-masterless provisioner respect disable_sudo directive for all commands
This commit is contained in:
commit
9e5b12cbf3
|
@ -130,7 +130,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
|
|||
return fmt.Errorf("Invalid guest_os_type: \"%s\"", p.config.GuestOSType)
|
||||
}
|
||||
|
||||
p.guestCommands, err = provisioner.NewGuestCommands(p.config.GuestOSType, false)
|
||||
p.guestCommands, err = provisioner.NewGuestCommands(p.config.GuestOSType, !p.config.DisableSudo)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Invalid guest_os_type: \"%s\"", p.config.GuestOSType)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue