mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 20:40:13 +03:00
Fix: pass name from TemplateUsage to add_node_from_template
The controller endpoint received name via TemplateUsage but never passed it to add_node_from_template, causing the name parameter to be silently ignored. name is optional - if omitted the template's default_name_format is used.
This commit is contained in:
parent
68567118f1
commit
533d3d5b71
@ -616,7 +616,7 @@ async def create_node_from_template(
|
||||
project = controller.get_project(str(project_id))
|
||||
|
||||
node = await project.add_node_from_template(
|
||||
template, x=template_usage.x, y=template_usage.y, compute_id=template_usage.compute_id
|
||||
template, x=template_usage.x, y=template_usage.y, name=template_usage.name, compute_id=template_usage.compute_id
|
||||
)
|
||||
|
||||
result = node.asdict()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user