mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-05 09:11:02 +00:00
Fix a crash with Python 3.4
Fix https://github.com/GNS3/gns3-server/issues/876
This commit is contained in:
parent
08c2892295
commit
bcc71b5455
@ -636,7 +636,7 @@ class Project:
|
|||||||
compute = self.controller.get_compute(node.pop("compute_id"))
|
compute = self.controller.get_compute(node.pop("compute_id"))
|
||||||
name = node.pop("name")
|
name = node.pop("name")
|
||||||
node_id = node.pop("node_id")
|
node_id = node.pop("node_id")
|
||||||
yield from self.add_node(compute, name, node_id, **node, dump=False)
|
yield from self.add_node(compute, name, node_id, dump=False, **node)
|
||||||
for link_data in topology.get("links", []):
|
for link_data in topology.get("links", []):
|
||||||
link = yield from self.add_link(link_id=link_data["link_id"])
|
link = yield from self.add_link(link_id=link_data["link_id"])
|
||||||
for node_link in link_data["nodes"]:
|
for node_link in link_data["nodes"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user