]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
validate: fix bug when using vault
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Nov 2021 13:32:26 +0000 (14:32 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 16 Nov 2021 15:23:27 +0000 (16:23 +0100)
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>
roles/ceph-validate/tasks/main.yml

index e2484ec2ab2feb6287458c318e3cda3d418c8b1e..a69583d5eca08c7a193bfc8325171867a63541c5 100644 (file)
   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: