From af0eec6bd5b76941614fb3521f7c20e7da37fe92 Mon Sep 17 00:00:00 2001 From: Jiri Stransky Date: Wed, 15 Nov 2017 13:17:54 +0100 Subject: [PATCH] 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 --- roles/undercloud-deploy/tasks/configure-vbmc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/undercloud-deploy/tasks/configure-vbmc.yml b/roles/undercloud-deploy/tasks/configure-vbmc.yml index c7a3e75c9..b4ad13301 100644 --- a/roles/undercloud-deploy/tasks/configure-vbmc.yml +++ b/roles/undercloud-deploy/tasks/configure-vbmc.yml @@ -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.