mirror of https://github.com/ceph/ceph-ansible.git
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
parent
9f4a99fb24
commit
2b97ac921b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue