Merge "Don't look for primary_role ips in AllNodesValidationConfig"

This commit is contained in:
Zuul 2019-02-22 15:14:36 +00:00 committed by Gerrit Code Review
commit 833080eada
1 changed files with 2 additions and 2 deletions

View File

@ -919,12 +919,12 @@ resources:
- ' '
- - yaql:
expression: coalesce($.data, []).first(null)
data: {get_attr: [{{primary_role_name}}, ip_address]}
data: {get_attr: [{{role.name}}, ip_address]}
{%- for network in networks %}
{%- if network.enabled|default(true) and network.name in role.networks|default([]) %}
- yaql:
expression: coalesce($.data, []).first(null)
data: {get_attr: [{{primary_role_name}}, {{network.name_lower}}_ip_address]}
data: {get_attr: [{{role.name}}, {{network.name_lower}}_ip_address]}
{%- endif %}
{%- endfor %}
{%- endfor %}