From 511ac73d4f76c633cf3968b1b0fb88c1300bcc5f Mon Sep 17 00:00:00 2001 From: John Fleming <31658656+spikefishjohn@users.noreply.github.com> Date: Mon, 17 Jan 2022 14:19:49 -0500 Subject: [PATCH] qemu_vm.py Linked node test. Include project name in error. This should help identify which project the none linked node is located in. --- gns3server/compute/qemu/qemu_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index d175f35f..662f07b7 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -258,7 +258,7 @@ class QemuVM(BaseNode): if not self.linked_clone: for node in self.manager.nodes: if node != self and getattr(node, variable) == value: - raise QemuError("Sorry a node without the linked base setting enabled can only be used once on your server. {} is already used by {}".format(value, node.name)) + raise QemuError("Sorry a node without the linked base setting enabled can only be used once on your server. {} is already used by {} in project {}".format(value, node.name, node.project.name)) setattr(self, "_" + variable, value) log.info('QEMU VM "{name}" [{id}] has set the QEMU {variable} path to {disk_image}'.format(name=self._name, variable=variable,