From: Guillaume Abrioux Date: Wed, 10 Nov 2021 13:32:26 +0000 (+0100) Subject: validate: fix bug when using vault X-Git-Tag: v6.0.20~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ef9921c215a87ae4a9980901f12f620d94e1cc43;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 (cherry picked from commit 6ad7e5286920fceff6f4483672cbdca44f06a25f) --- diff --git a/roles/ceph-validate/tasks/main.yml b/roles/ceph-validate/tasks/main.yml index ccbbdfe28..47233f588 100644 --- a/roles/ceph-validate/tasks/main.yml +++ b/roles/ceph-validate/tasks/main.yml @@ -208,7 +208,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: