diff options
Diffstat (limited to 'src/onapsdk/sdc')
8 files changed, 20 insertions, 20 deletions
diff --git a/src/onapsdk/sdc/templates/component_declare_input.json.j2 b/src/onapsdk/sdc/templates/component_declare_input.json.j2 index fd0ee03..b9fedc8 100644 --- a/src/onapsdk/sdc/templates/component_declare_input.json.j2 +++ b/src/onapsdk/sdc/templates/component_declare_input.json.j2 @@ -17,11 +17,11 @@ "schemaType": null, "type": "{{ property.property_type }}", "uniqueId": "{{ property.unique_id }}", - {% if property.value is not none %} + {%- if property.value is not none %} "value":"{{ property.value }}", {% else %} "value":null, - {% endif %} + {%- endif %} "definition": false, "getInputValues": null, "parentPropertyType": null, diff --git a/src/onapsdk/sdc/templates/pnf_create.json.j2 b/src/onapsdk/sdc/templates/pnf_create.json.j2 index fe7e60c..54e5de6 100644 --- a/src/onapsdk/sdc/templates/pnf_create.json.j2 +++ b/src/onapsdk/sdc/templates/pnf_create.json.j2 @@ -8,13 +8,13 @@ "componentInstancesProperties": {}, "componentType": "RESOURCE", "contactId": "cs0008", - {% if vsp is not none %} + {%- if vsp is not none %} "csarUUID": "{{ vsp.csar_uuid }}", "csarVersion": "1.0", "vendorName": "{{ vsp.vendor.name }}", {% else %} "vendorName": "{{ vendor.name }}", - {% endif %} + {%- endif %} "deploymentArtifacts": {}, "description": "PNF", "icon": "defaulticon", diff --git a/src/onapsdk/sdc/templates/sdc_element_action.json.j2 b/src/onapsdk/sdc/templates/sdc_element_action.json.j2 index 04fd946..6b2d4da 100644 --- a/src/onapsdk/sdc/templates/sdc_element_action.json.j2 +++ b/src/onapsdk/sdc/templates/sdc_element_action.json.j2 @@ -1,6 +1,6 @@ { -{% if action == const.COMMIT %} +{%- if action == const.COMMIT %} "commitRequest":{"message":"ok"}, -{% endif %} +{%- endif %} "action": "{{ action }}" } diff --git a/src/onapsdk/sdc/templates/sdc_resource_add_input.json.j2 b/src/onapsdk/sdc/templates/sdc_resource_add_input.json.j2 index 1964f36..feb22ca 100644 --- a/src/onapsdk/sdc/templates/sdc_resource_add_input.json.j2 +++ b/src/onapsdk/sdc/templates/sdc_resource_add_input.json.j2 @@ -22,11 +22,11 @@ "schemaType":"", "type":"{{ property.property_type }}", "uniqueId":"{{ sdc_resource.unique_identifier }}.{{ property.name }}", - {% if property.value is not none %} + {%- if property.value is not none %} "value":"{{ property.value }}", {% else %} "value":null, - {% endif %} + {%- endif %} "definition":false, "getInputValues":null, "parentPropertyType":null, diff --git a/src/onapsdk/sdc/templates/sdc_resource_add_nested_input.json.j2 b/src/onapsdk/sdc/templates/sdc_resource_add_nested_input.json.j2 index 9dc8261..3d800aa 100644 --- a/src/onapsdk/sdc/templates/sdc_resource_add_nested_input.json.j2 +++ b/src/onapsdk/sdc/templates/sdc_resource_add_nested_input.json.j2 @@ -19,9 +19,9 @@ {# "schemaType":"", #} "type":"{{ input.input_type }}", "uniqueId":"{{ sdc_resource.unique_identifier }}.{{ input.name }}", - {% if input.default_value is not none %} + {%- if input.default_value is not none %} "value":"{{ input.default_value }}", - {% endif %} + {%- endif %} "definition":false {# "type":"{{ input.input_type }}", #} } diff --git a/src/onapsdk/sdc/templates/sdc_resource_add_property.json.j2 b/src/onapsdk/sdc/templates/sdc_resource_add_property.json.j2 index bed49ca..bc02275 100644 --- a/src/onapsdk/sdc/templates/sdc_resource_add_property.json.j2 +++ b/src/onapsdk/sdc/templates/sdc_resource_add_property.json.j2 @@ -6,12 +6,12 @@ } }, "name": "{{ property.name }}", - {% if property.description %} + {%- if property.description %} "description": "{{ property.description }}", - {% endif %} - {% if property.value %} + {%- endif %} + {%- if property.value %} "value": "{{ property.value }}", - {% endif %} + {%- endif %} "type": "{{ property.property_type }}" } }
\ No newline at end of file diff --git a/src/onapsdk/sdc/templates/sdc_resource_category.json.j2 b/src/onapsdk/sdc/templates/sdc_resource_category.json.j2 index 633aacd..c346b89 100644 --- a/src/onapsdk/sdc/templates/sdc_resource_category.json.j2 +++ b/src/onapsdk/sdc/templates/sdc_resource_category.json.j2 @@ -3,11 +3,11 @@ "normalizedName": "{{ category.normalized_name }}", "name": "{{ category.name }}", "uniqueId": "{{ category.unique_id }}", - "subcategories": {% if category.subcategories %}{{ category.subcategories|tojson }}{% else %}null{% endif %}, - "version": {% if category.version %}"{{ category.version }}"{% else %}null{% endif %}, - "ownerId": {% if category.owner_id %}"{{ category.owner_id }}"{% else %}null{% endif %}, + "subcategories": {%- if category.subcategories %}{{ category.subcategories|tojson }}{% else %}null{%- endif %}, + "version": {%- if category.version %}"{{ category.version }}"{% else %}null{%- endif %}, + "ownerId": {%- if category.owner_id %}"{{ category.owner_id }}"{% else %}null{%- endif %}, "empty": {{ category.empty|tojson }}, - "type": {% if category.type %}"{{ category.type }}"{% else %}null{% endif %}, + "type": {%- if category.type %}"{{ category.type }}"{% else %}null{%- endif %}, "icons": {% if category.icons %}{{ category.icons|tojson }}{% else %}null{% endif %} } ]
\ No newline at end of file diff --git a/src/onapsdk/sdc/templates/vf_create.json.j2 b/src/onapsdk/sdc/templates/vf_create.json.j2 index 6f165e5..1d9c701 100644 --- a/src/onapsdk/sdc/templates/vf_create.json.j2 +++ b/src/onapsdk/sdc/templates/vf_create.json.j2 @@ -8,10 +8,10 @@ "componentInstancesProperties": {}, "componentType": "RESOURCE", "contactId": "cs0008", - {% if category.name != "Allotted Resource" %} + {%- if category.name != "Allotted Resource" %} "csarUUID": "{{ vsp.csar_uuid }}", "csarVersion": "1.0", - {% endif %} + {%- endif %} "deploymentArtifacts": {}, "description": "VF", "icon": "defaulticon", |