Skip to content

Commit 79a60e4

Browse files
Add empty list as default for adoption scenarios without networker nodes
Networker nodes are not required in all adoption topologies. We need to provide default filter to be able to generate adoption_vars template if osp-networkers are not defined in _vm_groups. Fixes: #2548
1 parent 6f231e9 commit 79a60e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/adoption_osp_deploy/templates/adoption_vars.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edpm_computes: |
99
["{{ compute }}.{{ cifmw_adoption_osp_deploy_scenario.cloud_domain }}"]="{{ node_nets.networks.ctlplane.ip_v4 }}"
1010
{% endfor %}
1111
edpm_networkers: |
12-
{% for networker in _vm_groups['osp-networkers'] %}
12+
{% for networker in _vm_groups['osp-networkers'] | default([]) %}
1313
{% set node_nets = cifmw_networking_env_definition.instances[networker] %}
1414
["{{ networker }}.{{ cifmw_adoption_osp_deploy_scenario.cloud_domain }}"]="{{ node_nets.networks.ctlplane.ip_v4 }}"
1515
{% endfor %}

0 commit comments

Comments
 (0)