zuul: use the correct syntax for a jinja test (non filter)

The usage of jinja tests as filters was deprecated in Ansible 2.5
and removed in Ansible 2.9 (now used by zuul).

https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#jinja-tests-used-as-filters

Change-Id: I21684c3f0ae9ee9e67359b504d99679cfaa5ee13
This commit is contained in:
Luigi Toscano 2020-06-23 11:03:52 +02:00
parent f119332390
commit 21c5b0be2d
1 changed files with 2 additions and 2 deletions

View File

@ -6,12 +6,12 @@
get_url:
url: "{{ sahara_image_url }}"
dest: "{{ sahara_image_path }}"
when: sahara_image_url is defined and sahara_image_url!='' and sahara_image_url|search('^http')
when: sahara_image_url is defined and sahara_image_url!='' and sahara_image_url is search('^http')
- name: set sahara_image_path from the local file
set_fact:
sahara_image_path: "{{ sahara_image_url }}"
when: sahara_image_url is defined and sahara_image_url!='' and not sahara_image_url|search('^http')
when: sahara_image_url is defined and sahara_image_url!='' and not sahara_image_url is search('^http')
# we cannot use os_image because Ansible 2.7 requires a newer version of
# openstacksdk than the one available in queens and pike.