From b6fa14454e21f3fc5ec985840721a501fbc0dfb9 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 7 Oct 2016 11:56:55 +0200 Subject: [PATCH] After conversion from 1.X check the topology before save to disk --- gns3server/controller/topology.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gns3server/controller/topology.py b/gns3server/controller/topology.py index 85eae314..bef4c14c 100644 --- a/gns3server/controller/topology.py +++ b/gns3server/controller/topology.py @@ -100,6 +100,7 @@ def load_topology(path): # first we backup the file shutil.copy(path, path + ".backup{}".format(topo.get("revision", 0))) topo = _convert_1_3_later(topo, path) + _check_topology_schema(topo) with open(path, "w+", encoding="utf-8") as f: json.dump(topo, f) elif topo["revision"] > GNS3_FILE_FORMAT_REVISION: