diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-02-29 10:14:22 +0100 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-02-29 16:18:36 +0100 |
commit | 04804c49eefd80efb0f31b27b56192ee4c77081b (patch) | |
tree | 7c756f99bcc99d99671a3b65e2b52d6e7b6bcf83 /src/onapsdk/aai/templates/aai_delete_relationship.json.j2 | |
parent | d3591ef0893a8b718042b3a7937bb1f73d972176 (diff) |
Avoid empty newlines in jina templates when if conditions evaluate to false
- avoid empty newlines for false if statements
- this is useful for the logging of the rendered objects in tests
Issue-ID: TEST-417
Change-Id: Iaeec217c87e73e316c4ef468007369facbf9a02f
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'src/onapsdk/aai/templates/aai_delete_relationship.json.j2')
-rw-r--r-- | src/onapsdk/aai/templates/aai_delete_relationship.json.j2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/onapsdk/aai/templates/aai_delete_relationship.json.j2 b/src/onapsdk/aai/templates/aai_delete_relationship.json.j2 index 5d7acb8..72b5fd9 100644 --- a/src/onapsdk/aai/templates/aai_delete_relationship.json.j2 +++ b/src/onapsdk/aai/templates/aai_delete_relationship.json.j2 @@ -1,11 +1,11 @@ { "related-to": "{{ relationship.related_to }}", "related-link": "{{ relationship.related_link }}", - {% if relationship.relationship_label %} + {%- if relationship.relationship_label %} "relationship-label": "{{ relationship.relationship_label }}", - {% endif %} - {% if relationship.related_to_property %} + {%- endif %} + {%- if relationship.related_to_property %} "related-to-property": {{ relationship.related_to_property | tojson }}, - {% endif %} + {%- endif %} "relationship-data": {{ relationship.relationship_data | tojson }} }
\ No newline at end of file |