From 5c8193556d51558e371e2ae80492e4e4a8c52da8 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 9 Jan 2017 10:14:21 +0100 Subject: [PATCH] Do not dump local compute configuration when saving topology Fix #855 --- gns3server/controller/topology.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/topology.py b/gns3server/controller/topology.py index ae8f7165..b5b87322 100644 --- a/gns3server/controller/topology.py +++ b/gns3server/controller/topology.py @@ -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