Fix API call to create a node from an appliance doesn't return the new node data. Fixes #1527

This commit is contained in:
grossmj 2019-02-20 10:47:33 +07:00
parent aea4ae808f
commit 081ba31b50

View File

@ -67,8 +67,9 @@ class ApplianceHandler:
controller = Controller.instance() controller = Controller.instance()
project = controller.get_project(request.match_info["project_id"]) project = controller.get_project(request.match_info["project_id"])
yield from project.add_node_from_appliance(request.match_info["appliance_id"], node = yield from project.add_node_from_appliance(request.match_info["appliance_id"],
x=request.json["x"], x=request.json["x"],
y=request.json["y"], y=request.json["y"],
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)