builder/qemu: Fix typo in version comparison

This commit is contained in:
Radek Simko
2019-05-07 08:37:57 +01:00
parent ad37e45006
commit b4d35eceff
+1 -1
View File
@@ -90,7 +90,7 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error
return nil, err
}
qemuVersion, err := version.NewVersion(rawVersion)
v2 := version.Must(version.NewVersion("1.2"))
v2 := version.Must(version.NewVersion("2.0"))
if qemuVersion.GreaterThanOrEqual(v2) {
if config.DiskInterface == "virtio-scsi" {