Skip to content

Commit

Permalink
fix test if openstack_cacert is a base64 string (#6371)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariob1626 authored Aug 4, 2020
1 parent 31526c0 commit 2acc5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes/node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@

- name: Test if openstack_cacert is a base64 string
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:
- cloud_provider is defined
- cloud_provider == 'openstack'
Expand Down

0 comments on commit 2acc5a7

Please sign in to comment.