Commit 3c2a77c0 authored by Romain Courteaud's avatar Romain Courteaud

slapos_json_rpc_api: fixup compute node retrieval

parent 9a79de52
......@@ -4,7 +4,10 @@ class RequestFailsError(JsonRpcAPIError):
type = "SUPPLY-FAILED"
status = 403
compute_node = context.jIOWebSection_getObjectFromData(data_dict)
compute_node = context.jIOWebSection_getObjectFromData({
'portal_type': 'Compute Node',
'compute_node_id': data_dict['compute_node_id']
})
compute_node.requestSoftwareRelease(
software_release_url=data_dict["software_release_uri"],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment