]> git.proxmox.com Git - qemu-server.git/commitdiff
fix version check in qemu_machine_feature_enabled
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 18 Sep 2018 07:35:26 +0000 (09:35 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 18 Sep 2018 07:37:32 +0000 (09:37 +0200)
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>
PVE/QemuServer.pm

index 5eec8211d31a7d74f6665631c440bcffd20d35f9..af0631dcde0d42c54bef8ea28fb859d185350fcb 100644 (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 {