Make sure networks_skip_config defaults to []

The ansible network configs does a check if network
is in networks_skip_config. When networks_skip_config is
not defined in the role data it get's defined as 'null'
in the Ansible inventory.

Default it to an empty list when creating the GroupVars
so that it's always of type: List in the inventory.

Change-Id: I0c09118b947aeee9b011e7d0ec23ab99af3680af
Closes-Bug: #1904808
(cherry picked from commit c8c9855678)
This commit is contained in:
Harald Jensås 2020-11-19 03:34:11 +01:00 committed by Rabi Mishra
parent 125d41b857
commit 87645fc586
1 changed files with 1 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ resources:
tripleo_network_config_template: {get_param: {{role.name}}NetworkConfigTemplate}
tripleo_network_config_with_ansible: {get_param: NetworkConfigWithAnsible}
default_route_networks: {{role.default_route_networks}}
networks_skip_config: {{role.networks_skip_config }}
networks_skip_config: {{ role.networks_skip_config|default([]) }}
role_tags: {{role.tags}}
{{role.name}}NetworkConfig: