DisableSudo, not PreventSudo

This commit is contained in:
David Z Hao 2019-06-20 13:39:51 -04:00 committed by GitHub
parent ea238b66c0
commit 1d4750a2d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
return fmt.Errorf("Invalid guest_os_type: \"%s\"", p.config.GuestOSType) 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 { if err != nil {
return fmt.Errorf("Invalid guest_os_type: \"%s\"", p.config.GuestOSType) return fmt.Errorf("Invalid guest_os_type: \"%s\"", p.config.GuestOSType)
} }