Fix crash when loading a topology without project id

This commit is contained in:
Julien Duponchelle
2016-08-31 09:42:05 +02:00
parent 7065988087
commit 03e31a2cb9
3 changed files with 39 additions and 1 deletions

View File

@ -122,7 +122,7 @@ def _convert_1_3_later(topo, topo_path):
"version": __version__,
"auto_start": topo.get("auto_start", False),
"name": topo["name"],
"project_id": topo["project_id"],
"project_id": topo.get("project_id"),
"topology": {
"links": [],
"drawings": [],