mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix issues with empty project variables. Fixes https://github.com/GNS3/gns3-gui/issues/2941
This commit is contained in:
1 parent
392678e757
commit
868c39acfe
2 files changed
+7
-1
No files matched your search
@@ -171,6 +171,11 @@ def load_topology(path):
|
||||
if "console_type" in node and node["console_type"] is None:
|
||||
node["console_type"] = "none"
|
||||
|
||||
# make sure we can open a project with empty variable name
|
||||
variables = topo.get("variables")
|
||||
if variables:
|
||||
topo["variables"] = [var for var in variables if var.get("name")]
|
||||
|
||||
try:
|
||||
_check_topology_schema(topo)
|
||||
except aiohttp.web.HTTPConflict as e:
|
||||
|
||||
Reference in new issue
Block a user