mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-20 07:18:07 +00:00
Handle builtin entry does not exist when adding node from template.
This commit is contained in:
parent
8dd2831890
commit
89f97902f9
@ -503,7 +503,7 @@ class Project:
|
|||||||
template["x"] = x
|
template["x"] = x
|
||||||
template["y"] = y
|
template["y"] = y
|
||||||
node_type = template.pop("template_type")
|
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_id is selected by clients for builtin templates
|
||||||
compute = self.controller.get_compute(compute_id)
|
compute = self.controller.get_compute(compute_id)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user