Commit 09b522b4 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slapos_jio_api_style: Fix typo on root_instance_title

parent 82a8d43f
......@@ -31,7 +31,7 @@
<item>
<key> <string>output_schema</string> </key>
<value> <string>{\n
"title": "bar"\n
"$ref: "%(base_url)s/portal_types/Software%20Instance/getTextContent"\n
}</string> </value>
</item>
<item>
......
......@@ -105,7 +105,7 @@
"type": "string",\n
"description": "The Id of the compute node hosting the instance, example: COMP-1234"\n
},\n
"root_instante_title": {\n
"root_instance_title": {\n
"title": "Root Instance Title",\n
"type": "string",\n
"description": "Title of the Instance at the root of the instance tree. This is the title of the instance that has been requested by the user."\n
......@@ -131,7 +131,7 @@
"type": "string",\n
"description": "Reference of the Instance where this is instance is hosted, usefull for shared instances"\n
},\n
"root_instante_title": {\n
"root_instance_title": {\n
"title": "Root Instance Title",\n
"type": "string",\n
"description": "Title of the Instance at the root of the instance tree. This is the title of the instance that has been requested by the user."\n
......
......@@ -18,8 +18,8 @@ if portal_type == "Software Instance":
search_kw["title"] = data_dict["title"]
if "compute_node_id" in data_dict:
search_kw["aggregate_parent_reference"] = data_dict["compute_node_id"]
if "root_instante_title" in data_dict:
search_kw["strict_specialise_title"] = data_dict["root_instante_title"]
if "root_instance_title" in data_dict:
search_kw["strict_specialise_title"] = data_dict["root_instance_title"]
result_list = [{
"title": x.title,
......@@ -49,8 +49,8 @@ elif portal_type == "Shared Instance":
error_code=404
)
search_kw["strict_aggregate_uid"] = host_instance_list[0].getObject().getAggregateUid()
if "root_instante_title" in data_dict:
search_kw["strict_specialise_title"] = data_dict["root_instante_title"]
if "root_instance_title" in data_dict:
search_kw["strict_specialise_title"] = data_dict["root_instance_title"]
#return portal.portal_catalog(src__=1, **search_kw)
result_list = [{
"title": x.title,
......
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