1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Merge pull request #2232 from Mlastawi/master

Parse name for request to node creation from template
This commit is contained in:
Jeremy Grossmann 2023-06-02 18:16:29 +09:30 committed by GitHub
commit 67943c4727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,7 @@ class TemplateHandler:
node = await project.add_node_from_template(request.match_info["template_id"],
x=request.json["x"],
y=request.json["y"],
name=request.json.get("name")),
compute_id=request.json.get("compute_id"))
response.set_status(201)
response.json(node)