[pve-devel] [PATCH 1/2] make kvm user version detection compatible to qemu
Stefan Priebe
s.priebe at profihost.ag
Wed Nov 21 09:08:17 CET 2012
---
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index b67d259..7a11e82 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -648,7 +648,7 @@ sub kvm_user_version {
my $tmp = `kvm -help 2>/dev/null`;
- if ($tmp =~ m/^QEMU( PC)? emulator version (\d+\.\d+(\.\d+)?) /) {
+ if ($tmp =~ m/^QEMU( PC)? emulator version (\d+\.\d+(\.\d+)?)[, ]/) {
$kvm_user_version = $2;
}
--
1.7.10.4
More information about the pve-devel
mailing list