fix version check in qemu_machine_feature_enabled

This caused a few hiccups with qemu 3.0...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2018-09-18 09:35:26 +02:00
parent 178acded44
commit dd84e5ec14

View File

@ -6565,9 +6565,9 @@ sub qemu_machine_feature_enabled {
$current_minor = $2;
}
return 1 if $current_major >= $version_major && $current_minor >= $version_minor;
return 1 if $current_major > $version_major ||
($current_major == $version_major &&
$current_minor >= $version_minor);
}
sub qemu_machine_pxe {