Commit f8b1f40f authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

slapos_jio_api_style: Add support to encoded URL when getting Software Installation

parent 97f3fcc4
portal_type = data_dict["portal_type"] portal_type = data_dict["portal_type"]
import urllib
portal = context.getPortalObject() portal = context.getPortalObject()
if portal_type == "Software Installation": if portal_type == "Software Installation":
...@@ -7,7 +8,7 @@ if portal_type == "Software Installation": ...@@ -7,7 +8,7 @@ if portal_type == "Software Installation":
data_dict["compute_node_id"], data_dict["compute_node_id"],
) )
if compute_node: if compute_node:
return compute_node.getSoftwareInstallationFromUrl(data_dict["software_release_uri"]) return compute_node.getSoftwareInstallationFromUrl(urllib.unquote(data_dict["software_release_uri"]))
elif portal_type == "Compute Node": elif portal_type == "Compute Node":
if "compute_node_id" in data_dict: if "compute_node_id" in data_dict:
......
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