1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix tests. Ref #1754

This commit is contained in:
grossmj 2020-05-26 21:40:41 +09:30
parent 69b816e21e
commit 5575657318

View File

@ -119,7 +119,7 @@ def project_to_topology(project):
compute = compute.__json__(topology_dump=True) compute = compute.__json__(topology_dump=True)
if compute["compute_id"] not in ("vm", "local", ): if compute["compute_id"] not in ("vm", "local", ):
data["topology"]["computes"].append(compute) data["topology"]["computes"].append(compute)
else: elif isinstance(compute, dict):
data["topology"]["computes"].append(compute) data["topology"]["computes"].append(compute)
_check_topology_schema(data) _check_topology_schema(data)
return data return data