mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-13 17:40:54 +00:00
Fix update property call for Qemu VMs.
This commit is contained in:
parent
0746949207
commit
46f4e7ef6e
@ -92,11 +92,7 @@ async def update_qemu_node(project_id: UUID, node_id: UUID, node_data: schemas.Q
|
|||||||
vm.console = node_data.pop("console", vm.console)
|
vm.console = node_data.pop("console", vm.console)
|
||||||
for name, value in node_data.items():
|
for name, value in node_data.items():
|
||||||
if hasattr(vm, name) and getattr(vm, name) != value:
|
if hasattr(vm, name) and getattr(vm, name) != value:
|
||||||
setattr(vm, name, value)
|
await vm.update_property(name, value)
|
||||||
if name == "cdrom_image":
|
|
||||||
# let the guest know about the new cdrom image
|
|
||||||
await vm.update_cdrom_image()
|
|
||||||
|
|
||||||
vm.updated()
|
vm.updated()
|
||||||
return vm.__json__()
|
return vm.__json__()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user