mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-22 16:01:43 -04:00
ignore false and 0 in case someone defined the field as "false" or false
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user