Commit 915859e4 authored by Romain Courteaud's avatar Romain Courteaud 🐙

slapos_json_rpc_api: use jIOWebSection_getObjectFromData

parent 089fda3b
......@@ -20,12 +20,10 @@ kw = dict(software_release=data_dict.get("software_release_uri"),
state=data_dict.get("state", "started"),
project_reference=data_dict.get("project_reference", None))
if compute_node_id and compute_partition_id:
compute_partition = portal.portal_catalog.getComputePartitionObject(
compute_node_id,
compute_partition_id,
)
requester = compute_partition.getSoftwareInstance()
requester = context.jIOWebSection_getObjectFromData(data_dict)
instance_tree = requester.getSpecialiseValue()
if instance_tree is not None:
......
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