Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Make PingTestGatewayIPsMap a map of flatten lists
Browse files Browse the repository at this point in the history
PingTestGatewayIPsMap elements may contain list of lists, causing failures
on roles that iterate over them. See [1] and #1950528 for more info.

[1] https://review.opendev.org/c/openstack/tripleo-ansible/+/817500

Closes-bug: #1950528
Change-Id: Idb70c822f01f808871a53689edfa2edf52e59e54
Signed-off-by: Douglas Viroel <[email protected]>
  • Loading branch information
viroel committed Nov 12, 2021
1 parent 65c005c commit efc328c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overcloud.j2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ resources:
{%- for role in roles %}
{{role.name}}:
yaql:
expression: list($.data.where($ != null))
expression: list($.data.where($ != null)).flatten()
data:
- {get_attr: [Networks, net_attributes_map, ctlplane, subnets, {get_param: {{role.name}}ControlPlaneSubnet}, gateway_ip]}
{%- for network in networks %}
Expand Down

0 comments on commit efc328c

Please sign in to comment.