1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 08:18:30 +00:00

Quote command in qemu debug logs so you can copy/paste them

This commit is contained in:
Julien Duponchelle 2015-08-04 17:06:42 +02:00
parent e91a7cebd4
commit 1613999689

View File

@ -816,7 +816,7 @@ class QemuVM(BaseVM):
raise QemuError("Could not find free port for the Qemu monitor: {}".format(e)) raise QemuError("Could not find free port for the Qemu monitor: {}".format(e))
self._command = yield from self._build_command() self._command = yield from self._build_command()
command_string = " ".join(self._command) command_string = " ".join(shlex.quote(s) for s in self._command)
try: try:
log.info("Starting QEMU with: {}".format(command_string)) log.info("Starting QEMU with: {}".format(command_string))
self._stdout_file = os.path.join(self.working_dir, "qemu.log") self._stdout_file = os.path.join(self.working_dir, "qemu.log")