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>
pull/4414/head
Guillaume Abrioux 2019-09-18 14:41:46 +02:00
parent 9f4a99fb24
commit 2b97ac921b
1 changed files with 2 additions and 1 deletions

View File

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