1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix console variable replacement issue.

This commit is contained in:
grossmj 2019-05-18 14:31:21 +07:00
parent 6edcbd0461
commit 470cea327f

View File

@ -1890,7 +1890,7 @@ class QemuVM(BaseNode):
additional_options = additional_options.replace("%project-id%", self.project.id)
additional_options = additional_options.replace("%project-path%", '"' + self.project.path.replace('"', '\\"') + '"')
if self._console:
additional_options = additional_options.replace("%console-port%", self._console)
additional_options = additional_options.replace("%console-port%", str(self._console))
command = [self.qemu_path]
command.extend(["-name", self._name])
command.extend(["-m", "{}M".format(self._ram)])