Don't look for primary_role ips in AllNodesValidationConfig

We changed the AllNodesValidationConfig to be role specific.
However, we still use primary_role_name ips.

Change-Id: I0aa1174992f6f049f1e64faea6d88e377d357bad
Closes-Bug: #1817087
This commit is contained in:
Rabi Mishra 2019-02-21 20:51:18 +05:30
parent 6f73f44a28
commit 95362173c2
1 changed files with 2 additions and 2 deletions

View File

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