From 46f4e7ef6eac5dde6c7858501de3322fdfcb0bbd Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 12 Oct 2020 18:07:00 +1030 Subject: [PATCH] Fix update property call for Qemu VMs. --- gns3server/endpoints/compute/qemu_nodes.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gns3server/endpoints/compute/qemu_nodes.py b/gns3server/endpoints/compute/qemu_nodes.py index fe87668d..57cca0a9 100644 --- a/gns3server/endpoints/compute/qemu_nodes.py +++ b/gns3server/endpoints/compute/qemu_nodes.py @@ -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__()