Skip to content

Commit b61da98

Browse files
committed
Fix ansible 2.19 incompatibility
Before this fix we would fail with: ~~~ Conditional result was "['100.64.0.5', '100.65.0.5']" of type 'list', which evaluates to True. Conditionals must have a boolean result. ~~~ Jira: OSPRH-18609
1 parent f1e09b5 commit b61da98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roles/edpm_frr/tasks/configure.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
- name: Assert either edpm_frr_bgp_peers or edpm_frr_bgp_uplinks configured
3030
ansible.builtin.assert:
3131
that:
32-
- "edpm_frr_bgp_uplinks or edpm_frr_bgp_peers"
32+
- edpm_frr_bgp_uplinks | length > 0 or edpm_frr_bgp_peers | length > 0
3333

3434
- name: FRR uplink interfaces
3535
# if edpm_frr_bgp_peers are defined, edpm_frr_bgp_uplinks are not used to create frr.conf.j2
3636
when:
37-
- edpm_frr_bgp_uplinks
38-
- not edpm_frr_bgp_peers
37+
- edpm_frr_bgp_uplinks | length > 0
38+
- not edpm_frr_bgp_peers | length > 0
3939
block:
4040
- name: Construct FRR uplink interfaces from os-net-config mappings
4141
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)