validate: check ceph_docker_registry_* length

This commit adds a condition to check whether these variables are empty.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 2b97ac921b)
pull/4461/head
Guillaume Abrioux 2019-09-18 14:41:46 +02:00
parent 9d3fbcf47e
commit 651cf13a74
1 changed files with 2 additions and 1 deletions

View File

@ -123,4 +123,5 @@
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)