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
No known key found for this signature in database
GPG Key ID: 1F1C84FE689A88D7
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error
return nil, err return nil, err
} }
qemuVersion, err := version.NewVersion(rawVersion) qemuVersion, err := version.NewVersion(rawVersion)
v2 := version.Must(version.NewVersion("1.2")) v2 := version.Must(version.NewVersion("2.0"))
if qemuVersion.GreaterThanOrEqual(v2) { if qemuVersion.GreaterThanOrEqual(v2) {
if config.DiskInterface == "virtio-scsi" { if config.DiskInterface == "virtio-scsi" {