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:
parent
8dd2831890
commit
89f97902f9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user