1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Do not dump local compute configuration when saving topology

Fix #855
This commit is contained in:
Julien Duponchelle 2017-01-09 10:14:21 +01:00
parent 955a466be5
commit 5c8193556d
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -99,7 +99,9 @@ def project_to_topology(project):
data["topology"]["drawings"].append(drawing.__json__(topology_dump=True))
for compute in computes:
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)
return data