1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-19 23:08:09 +00:00

Handle builtin entry does not exist when adding node from template.

This commit is contained in:
grossmj 2019-11-01 17:48:25 +08:00
parent 8dd2831890
commit 89f97902f9

View File

@ -503,7 +503,7 @@ class Project:
template["x"] = x
template["y"] = y
node_type = template.pop("template_type")
if template["builtin"] is True:
if template.get("builtin") is True:
# compute_id is selected by clients for builtin templates
compute = self.controller.get_compute(compute_id)
else: