From 53dc75d29cbc5fb84c08aad188a071ccda29101e Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 10 Nov 2021 14:32:26 +0100 Subject: [PATCH] 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) --- roles/ceph-validate/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-validate/tasks/main.yml b/roles/ceph-validate/tasks/main.yml index 9a24cc888..88c730ad8 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: -- 2.39.5