Skip to content
Snippets Groups Projects
Unverified Commit 9c1e0824 authored by Sylvain Desbureaux's avatar Sylvain Desbureaux Committed by GitHub
Browse files

change `|` to `is` (#6991)


Since ansible 2.9 search cannot be used as filter after a pipe but after `is`

Signed-off-by: default avatarSylvain Desbureaux <sylvain.desbureaux@orange.com>
parent 33a60fe9
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
- name: Test if openstack_cacert is a base64 string - name: Test if openstack_cacert is a base64 string
set_fact: set_fact:
openstack_cacert_is_base64: "{% if openstack_cacert | search ('^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$') %}true{% else %}false{% endif %}" openstack_cacert_is_base64: "{% if openstack_cacert is search ('^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$') %}true{% else %}false{% endif %}"
when: when:
- cloud_provider is defined - cloud_provider is defined
- cloud_provider == 'openstack' - cloud_provider == 'openstack'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment