Merge "Fix conditional to be compatible with new Ansible"

This commit is contained in:
Zuul 2017-11-20 15:01:21 +00:00 committed by Gerrit Code Review
commit 8a85c20e84

View File

@ -51,7 +51,7 @@
- name: set vbmc address if there is a (nat) network defined with an address - name: set vbmc address if there is a (nat) network defined with an address
set_fact: set_fact:
vbmc_address: "{{ networks|selectattr('address', 'defined')|map(attribute='address')|list|first }}" 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 # If there is no nat network with an address, the undercloud will be
# connected to the default libvirt network to fill this role. # connected to the default libvirt network to fill this role.