Skip to content

Commit

Permalink
Do not dump local compute configuration when saving topology
Browse files Browse the repository at this point in the history
Fix #855
  • Loading branch information
julien-duponchelle committed Jan 9, 2017
1 parent 955a466 commit 5c81935
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gns3server/controller/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5c81935

Please sign in to comment.