From 4918675cd51c0df4d791ee57bd6554f4ff396d2d Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 24 Nov 2014 11:44:27 -0700 Subject: [PATCH] Fixes Qemu version detection. --- gns3server/modules/qemu/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/qemu/__init__.py b/gns3server/modules/qemu/__init__.py index 77334270..aaf36352 100644 --- a/gns3server/modules/qemu/__init__.py +++ b/gns3server/modules/qemu/__init__.py @@ -601,8 +601,8 @@ class Qemu(IModule): if sys.platform.startswith("win"): return "" try: - output = subprocess.check_output([qemu_path, "--version"]) - match = re.search("QEMU emulator version ([0-9a-z\-\.]+)", output.decode("utf-8")) + output = subprocess.check_output([qemu_path, "-version"]) + match = re.search("version\s+([0-9a-z\-\.]+)", output.decode("utf-8")) if match: version = match.group(1) return version