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/7011/head
Guillaume Abrioux 2021-11-10 14:32:26 +01:00
parent f5dd0a8c37
commit de14c6aeb2
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,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: