mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-25 19:32:24 +02:00
Fix: Skip add_compute for existing computes when opening projects
This commit is contained in:
parent
0f4b0c567e
commit
4d06b2b7b6
@ -1147,7 +1147,9 @@ class Project:
|
|||||||
|
|
||||||
topology = project_data["topology"]
|
topology = project_data["topology"]
|
||||||
for compute in topology.get("computes", []):
|
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
|
# Get all compute used in the project
|
||||||
# used to allocate application IDs for IOU nodes.
|
# used to allocate application IDs for IOU nodes.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user