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