Skip to content

Commit a72138d

Browse files
committed
[BGP] Fix template to properly obtain ansibleVars
The ci_gen_kustomize_values templates have to be adapted to the EDPM hostname changes. OSPRH-13820
1 parent 6a83bd5 commit a72138d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/ci_gen_kustomize_values/templates/bgp_dt01/edpm-common-nodeset-values/common-bgp-edpm-values.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ data:
3737
ansible:
3838
{% set ctlplane_rack = 'ctlplane' + rack %}
3939
host: {{ cifmw_networking_env_definition.instances[instance].networks[ctlplane_rack].ip_v4 }}
40-
{% if original_content.data.nodeset.nodes['edpm-' ~ node_type ~ '-' ~ loop.index0].ansible.ansibleVars is defined %}
41-
ansibleVars: {{ original_content.data.nodeset.nodes['edpm-' ~ node_type ~ '-' ~ loop.index0].ansible.ansibleVars }}
40+
{% if original_content.data.nodeset.nodes['edpm-' ~ instance].ansible.ansibleVars is defined %}
41+
ansibleVars: {{ original_content.data.nodeset.nodes['edpm-' ~ instance].ansible.ansibleVars }}
4242
{% endif %}
4343
hostName: {{ instance }}
4444
networks:

0 commit comments

Comments
 (0)