From 79a60e463aaeb8e4503a9af77b7fd43cc8dec90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Ciecierski?= Date: Tue, 3 Dec 2024 12:26:52 +0100 Subject: [PATCH] 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: https://github.com/openstack-k8s-operators/ci-framework/pull/2548 --- roles/adoption_osp_deploy/templates/adoption_vars.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/adoption_osp_deploy/templates/adoption_vars.yaml.j2 b/roles/adoption_osp_deploy/templates/adoption_vars.yaml.j2 index decc78cf08..1bf61a7aad 100644 --- a/roles/adoption_osp_deploy/templates/adoption_vars.yaml.j2 +++ b/roles/adoption_osp_deploy/templates/adoption_vars.yaml.j2 @@ -9,7 +9,7 @@ edpm_computes: | ["{{ compute }}.{{ cifmw_adoption_osp_deploy_scenario.cloud_domain }}"]="{{ node_nets.networks.ctlplane.ip_v4 }}" {% endfor %} edpm_networkers: | - {% for networker in _vm_groups['osp-networkers'] %} + {% for networker in _vm_groups['osp-networkers'] | default([]) %} {% set node_nets = cifmw_networking_env_definition.instances[networker] %} ["{{ networker }}.{{ cifmw_adoption_osp_deploy_scenario.cloud_domain }}"]="{{ node_nets.networks.ctlplane.ip_v4 }}" {% endfor %}