]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
validate: check ceph_docker_registry_* length
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 18 Sep 2019 12:41:46 +0000 (14:41 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 18 Sep 2019 21:43:21 +0000 (23:43 +0200)
This commit adds a condition to check whether these variables are empty.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 2b97ac921bcd913e2daf0fa106d98ff1d00743c9)

roles/ceph-validate/tasks/main.yml

index 997fb57c13887ff3f49939dc296b5af7e7c78f17..dbcebee38898b9e7ae771557ffc4ad5fcbccf7c3 100644 (file)
     msg: 'ceph_docker_registry_username and/or ceph_docker_registry_password variables need to be set'
   when:
     - ceph_docker_registry_auth | bool
-    - ceph_docker_registry_username is not defined or ceph_docker_registry_password is not defined
+    - (ceph_docker_registry_username is not defined or ceph_docker_registry_password is not defined)
+    - (ceph_docker_registry_username | length == 0 or ceph_docker_registry_password | length == 0)