mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Fix: Skip add_compute for existing computes when opening projects
This commit is contained in:
1 file changed
+3
-1
@@ -1147,7 +1147,9 @@ class Project:
|
||||
|
||||
topology = project_data["topology"]
|
||||
for compute in topology.get("computes", []):
|
||||
await self.controller.add_compute(**compute)
|
||||
compute_id = compute.get("compute_id")
|
||||
if compute_id not in self._controller._computes:
|
||||
await self.controller.add_compute(**compute)
|
||||
|
||||
# Get all compute used in the project
|
||||
# used to allocate application IDs for IOU nodes.
|
||||
|
||||
Reference in new issue
Block a user