Skip to content

Commit ac7bef4

Browse files
Merge pull request #1195 from mauricioharley/fix-jinja2-whitespace-bgp
Fix Jinja2 whitespace handling in dataplane_cr template
2 parents b782bcc + d68f19e commit ac7bef4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • tests/roles/dataplane_adoption/defaults

tests/roles/dataplane_adoption/defaults/main.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,32 +350,32 @@ dataplane_cr: |
350350
edpm_nova_compute_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-nova-compute:{{ image_tag }}"
351351
edpm_nova_libvirt_container_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-nova-libvirt:{{ image_tag }}"
352352
edpm_ovn_metadata_agent_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-neutron-metadata-agent-ovn:{{ image_tag }}"
353-
{% if telemetry_adoption|bool +%}
353+
{% if telemetry_adoption|bool -%}
354354
edpm_telemetry_ceilometer_compute_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-ceilometer-compute:{{ image_tag }}"
355355
edpm_telemetry_ceilometer_ipmi_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-ceilometer-ipmi:{{ image_tag }}"
356-
{%+ endif +%}
356+
{% endif -%}
357357
edpm_neutron_sriov_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-neutron-sriov-agent:{{ image_tag }}"
358358
edpm_neutron_ovn_agent_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-neutron-ovn-agent:{{ image_tag }}"
359359
edpm_neutron_metadata_agent_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-neutron-metadata-agent-ovn:{{ image_tag }}"
360360
edpm_neutron_dhcp_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-neutron-dhcp-agent:{{ image_tag }}"
361361
edpm_multipathd_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-multipathd:{{ image_tag }}"
362362
{% if edpm_telemetry_node_exporter_image is defined -%}
363363
edpm_telemetry_node_exporter_image: "{{ edpm_telemetry_node_exporter_image }}"
364-
{% endif %}
365-
{% if bgp | bool +%}
364+
{% endif -%}
365+
{% if bgp | bool -%}
366366
edpm_frr_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-frr:{{ image_tag }}"
367367
edpm_ovn_bgp_agent_image: "{{ registry_name }}/{{ registry_namespace }}/openstack-ovn-bgp-agent:{{ image_tag }}"
368368
edpm_frr_bgp_ipv4_src_network: bgpmainnet
369369
edpm_frr_bgp_ipv6_src_network: bgpmainnetv6
370370
edpm_frr_bgp_neighbor_password: f00barZ
371-
{%+ endif +%}
371+
{% endif -%}
372372
{% if edpm_container_registry_logins is defined -%}
373373
edpm_container_registry_logins:
374374
{% for login, value in edpm_container_registry_logins.items() -%}
375-
{{ login | indent(10) }}:
375+
{{ login }}:
376376
{{ value | to_nice_yaml | trim }}
377377
{% endfor -%}
378-
{%+ endif +%}
378+
{% endif -%}
379379
380380
gather_facts: false
381381
# edpm firewall, change the allowed CIDR if needed

0 commit comments

Comments
 (0)