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