Commit 4c6a4584 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Romain Courteaud

slapos_jio_api_style: Fix state value in search software installation

parent 665fad6c
......@@ -12,7 +12,7 @@ if "compute_node_id" in data_dict:
result_list = [{
"software_release_uri": x.url_string,
"compute_node_id": x.aggregate_reference,
"state": x.slap_state,
"state": "available" if x.slap_state == "start_requested" else "destroyed",
"portal_type": x.portal_type,
} for x in context.getPortalObject().portal_catalog(**search_kw)]
......
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