From: Guillaume Abrioux Date: Wed, 10 Nov 2021 13:32:26 +0000 (+0100) Subject: validate: fix bug when using vault X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6ad7e5286920fceff6f4483672cbdca44f06a25f;p=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 --- diff --git a/roles/ceph-validate/tasks/main.yml b/roles/ceph-validate/tasks/main.yml index e2484ec2a..a69583d5e 100644 --- a/roles/ceph-validate/tasks/main.yml +++ b/roles/ceph-validate/tasks/main.yml @@ -201,7 +201,7 @@ when: - 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 | 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 fail: