mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
parent
955a466be5
commit
5c8193556d
@ -99,7 +99,9 @@ def project_to_topology(project):
|
|||||||
data["topology"]["drawings"].append(drawing.__json__(topology_dump=True))
|
data["topology"]["drawings"].append(drawing.__json__(topology_dump=True))
|
||||||
for compute in computes:
|
for compute in computes:
|
||||||
if hasattr(compute, "__json__"):
|
if hasattr(compute, "__json__"):
|
||||||
data["topology"]["computes"].append(compute.__json__(topology_dump=True))
|
compute = compute.__json__(topology_dump=True)
|
||||||
|
if compute["compute_id"] not in ("vm", "local", ):
|
||||||
|
data["topology"]["computes"].append(compute)
|
||||||
_check_topology_schema(data)
|
_check_topology_schema(data)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user