Fix conditional to be compatible with new Ansible
The old conditional caused an error when used with new Ansible, "no test named 'greaterthan'". Change-Id: I5c61da71794bba0b24f5aa69cdd38cfbcab0ef4d Closes-Bug: #1732423
This commit is contained in:
parent
4e5c06df20
commit
af0eec6bd5
|
@ -51,7 +51,7 @@
|
|||
- name: set vbmc address if there is a (nat) network defined with an address
|
||||
set_fact:
|
||||
vbmc_address: "{{ networks|selectattr('address', 'defined')|map(attribute='address')|list|first }}"
|
||||
when: "{{ networks|selectattr('address', 'defined')|map(attribute='name')|list|length is greaterthan 0}}"
|
||||
when: networks|selectattr('address', 'defined')|map(attribute='name')|list|length > 0
|
||||
|
||||
# If there is no nat network with an address, the undercloud will be
|
||||
# connected to the default libvirt network to fill this role.
|
||||
|
|
Loading…
Reference in New Issue