Make salt-masterless provisioner respect disable_sudo directive for all commands
This commit is contained in:
parent
022b559c2f
commit
ea238b66c0
|
@ -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.PreventSudo)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Invalid guest_os_type: \"%s\"", p.config.GuestOSType)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue