From 16139996893f8059d61cd257e57c92d93de686ea Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 4 Aug 2015 17:06:42 +0200 Subject: [PATCH] Quote command in qemu debug logs so you can copy/paste them --- gns3server/modules/qemu/qemu_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py index 73f45840..ecdcbd22 100644 --- a/gns3server/modules/qemu/qemu_vm.py +++ b/gns3server/modules/qemu/qemu_vm.py @@ -816,7 +816,7 @@ class QemuVM(BaseVM): raise QemuError("Could not find free port for the Qemu monitor: {}".format(e)) self._command = yield from self._build_command() - command_string = " ".join(self._command) + command_string = " ".join(shlex.quote(s) for s in self._command) try: log.info("Starting QEMU with: {}".format(command_string)) self._stdout_file = os.path.join(self.working_dir, "qemu.log")