mirror of https://github.com/ceph/ceph-ansible.git
validate: fix bug when using vault
since a variable encrypted with vault is no longer a string but a
encrypted object we can't use the filter | length, we have to convert it
to a string before.
Fixes: #6991
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 6ad7e52869
)
pull/7007/head
parent
6bdaa9e3d5
commit
ef9921c215
|
@ -208,7 +208,7 @@
|
||||||
when:
|
when:
|
||||||
- ceph_docker_registry_auth | bool
|
- ceph_docker_registry_auth | bool
|
||||||
- (ceph_docker_registry_username is not defined or ceph_docker_registry_password is not defined) or
|
- (ceph_docker_registry_username is not defined or ceph_docker_registry_password is not defined) or
|
||||||
(ceph_docker_registry_username | length == 0 or ceph_docker_registry_password | length == 0)
|
(ceph_docker_registry_username | string | length == 0 or ceph_docker_registry_password | string | length == 0)
|
||||||
|
|
||||||
- name: validate container service and container package
|
- name: validate container service and container package
|
||||||
fail:
|
fail:
|
||||||
|
|
Loading…
Reference in New Issue