From 1e61c969e222604955da34d131176929eca85c0b Mon Sep 17 00:00:00 2001 From: Xavier Thompson <xavier.thompson@nexedi.com> Date: Tue, 28 Mar 2023 15:27:19 +0200 Subject: [PATCH] slapproxy: Fix hateoas metadata to match ERP5 --- slapos/proxy/views.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/slapos/proxy/views.py b/slapos/proxy/views.py index 70c86a0af..a4e5b0dc7 100644 --- a/slapos/proxy/views.py +++ b/slapos/proxy/views.py @@ -1095,32 +1095,32 @@ def hateoas_partitions(partition_reference): }, 'my_reference': { 'type': 'StringField', - 'key': 'partition_reference', + 'key': 'field_my_reference', 'default': partition['partition_reference'], }, 'my_slap_state': { 'type': 'StringField', - 'key': 'requested_state', + 'key': 'field_my_slap_state', 'default': partition['requested_state'], }, 'my_text_content': { 'type': 'StringField', - 'key': 'xml', + 'key': 'field_my_text_content', 'default': partition['xml'], }, 'my_connection_parameter_list': { 'type': 'StringField', - 'key': 'connection_xml', + 'key': 'field_my_connection_parameter_list', 'default': partition['connection_xml'], }, 'my_url_string': { 'type': 'StringField', - 'key': 'software_release', + 'key': 'field_my_url_string', 'default': partition['software_release'], }, 'my_source_reference': { 'type': 'StringField', - 'key': 'software_type', + 'key': 'field_my_source_reference', 'default': partition['software_type'], }, }, -- 2.30.9