ignore false and 0 in case someone defined the field as "false" or false

This commit is contained in:
Joshua Foster 2020-07-14 12:11:24 -04:00
parent b0fa05704a
commit b49c844637
1 changed files with 3 additions and 0 deletions

View File

@ -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))
}