mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-29 15:44:24 +00:00
Fixes uncalled coroutine.
This commit is contained in:
parent
970f22a83e
commit
3f86df5169
@ -987,6 +987,7 @@ class QemuVM(BaseVM):
|
|||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
||||||
|
@asyncio.coroutine
|
||||||
def _network_options(self):
|
def _network_options(self):
|
||||||
|
|
||||||
network_options = []
|
network_options = []
|
||||||
@ -1070,8 +1071,7 @@ class QemuVM(BaseVM):
|
|||||||
command = [self.qemu_path]
|
command = [self.qemu_path]
|
||||||
command.extend(["-name", self._name])
|
command.extend(["-name", self._name])
|
||||||
command.extend(["-m", str(self._ram)])
|
command.extend(["-m", str(self._ram)])
|
||||||
disk_options = yield from self._disk_options()
|
command.extend((yield from self._disk_options()))
|
||||||
command.extend(disk_options)
|
|
||||||
command.extend(self._linux_boot_options())
|
command.extend(self._linux_boot_options())
|
||||||
command.extend(self._serial_options())
|
command.extend(self._serial_options())
|
||||||
command.extend(self._monitor_options())
|
command.extend(self._monitor_options())
|
||||||
@ -1081,7 +1081,7 @@ class QemuVM(BaseVM):
|
|||||||
command.extend(shlex.split(additional_options))
|
command.extend(shlex.split(additional_options))
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
QemuError("Invalid additional options: {} error {}".format(additional_options, e))
|
QemuError("Invalid additional options: {} error {}".format(additional_options, e))
|
||||||
command.extend(self._network_options())
|
command.extend((yield from self._network_options()))
|
||||||
command.extend(self._graphic())
|
command.extend(self._graphic())
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user