Merge pull request #8050 from alrs/fix-qemu-dropped-error

builder/qemu: Fix dropped error
This commit is contained in:
Adrien Delorme 2019-08-29 14:50:43 +02:00 committed by GitHub
commit f152e6a2a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {