Parse name for request to node creation from template

This commit is contained in:
Maciej Łastawiecki 2023-06-02 09:39:08 +02:00
parent 25c03b7823
commit a0943b0b5a

View File

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