mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 00:38:10 +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)
|
||||
for name, value in node_data.items():
|
||||
if hasattr(vm, name) and getattr(vm, name) != value:
|
||||
setattr(vm, name, value)
|
||||
if name == "cdrom_image":
|
||||
# let the guest know about the new cdrom image
|
||||
await vm.update_cdrom_image()
|
||||
|
||||
await vm.update_property(name, value)
|
||||
vm.updated()
|
||||
return vm.__json__()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user