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

pull/1842/head
grossmj 4 years ago
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…
Cancel
Save