mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
This commit is contained in:
parent
0259696872
commit
c248764efb
@ -445,7 +445,7 @@ class QemuVM(BaseNode):
|
|||||||
else:
|
else:
|
||||||
self._cdrom_image = ""
|
self._cdrom_image = ""
|
||||||
|
|
||||||
async def update(self, name, value):
|
async def update_property(self, name, value):
|
||||||
"""
|
"""
|
||||||
Update Qemu VM properties.
|
Update Qemu VM properties.
|
||||||
"""
|
"""
|
||||||
|
@ -124,7 +124,7 @@ class QEMUHandler:
|
|||||||
vm.console = request.json.pop("console", vm.console)
|
vm.console = request.json.pop("console", vm.console)
|
||||||
for name, value in request.json.items():
|
for name, value in request.json.items():
|
||||||
if hasattr(vm, name) and getattr(vm, name) != value:
|
if hasattr(vm, name) and getattr(vm, name) != value:
|
||||||
await vm.update(name, value)
|
await vm.update_property(name, value)
|
||||||
vm.updated()
|
vm.updated()
|
||||||
response.json(vm)
|
response.json(vm)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user