Skip to content
Snippets Groups Projects
Unverified Commit a78e861a authored by Florian Ruynat's avatar Florian Ruynat Committed by GitHub
Browse files

Fix test if openstack_cacert is a base64 string (#6421)

parent 3550e3c1
No related branches found
No related tags found
No related merge requests found
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,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 | b64decode %}true{% else %}false{% endif %}" 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 %}"
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