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

Fixes update() missing 2 required positional arguments: 'name' and 'value'. Fixes #1821 #1825

This commit is contained in:
grossmj 2020-10-06 17:08:51 +10:30
parent 0259696872
commit c248764efb
2 changed files with 2 additions and 2 deletions

View File

@ -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.
"""

View File

@ -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)