From: Guillaume Abrioux Date: Mon, 21 Oct 2019 15:09:31 +0000 (+0200) Subject: validate: fix credentials validation X-Git-Tag: v5.0.0alpha1~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da4215e9c055682f1f91552cc40e4fa77a75fc7a;p=ceph-ansible.git validate: fix credentials validation This task is failing when `ceph_docker_registry_auth` is enabled and `ceph_docker_registry_username` is undefined with an ansible error instead of the expected message. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1763139 Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-validate/tasks/main.yml b/roles/ceph-validate/tasks/main.yml index 58620e803..e3a001e73 100644 --- a/roles/ceph-validate/tasks/main.yml +++ b/roles/ceph-validate/tasks/main.yml @@ -224,5 +224,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 | length == 0 or ceph_docker_registry_password | length == 0) + - (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)