builder/qemu: Fix dropped error

This commit is contained in:
Lars Lehtonen 2019-08-29 05:13:46 -07:00
parent 1b8673ddc9
commit b6eadb419a
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error
return nil, err
}
qemuVersion, err := version.NewVersion(rawVersion)
if err != nil {
return nil, err
}
v2 := version.Must(version.NewVersion("2.0"))
if qemuVersion.GreaterThanOrEqual(v2) {