mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-19 06:21:41 -04:00
DisableSudo, not PreventSudo
This commit is contained in:
@@ -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, !p.config.PreventSudo)
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user