mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
ignore false and 0 in case someone defined the field as "false" or false
This commit is contained in:
parent
b0fa05704a
commit
b49c844637
1 changed files with 3 additions and 0 deletions
|
|
@ -146,6 +146,9 @@ func (c *CreateConfig) Prepare() []error {
|
|||
usbCount++
|
||||
case "xhci":
|
||||
xhciCount++
|
||||
// 0 and false for backwards compatibility
|
||||
case "false", "0":
|
||||
continue
|
||||
default:
|
||||
errs = append(errs, fmt.Errorf("usb_controller[%d] references an unknown usb controller", i))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue