From 883aede8ac836444e23bb5709e167d5b9776bcf8 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Tue, 29 Aug 2017 19:01:36 +0200 Subject: [PATCH] ovirt_hosts: Fix waiting state of adding a new host (#28771) --- lib/ansible/modules/cloud/ovirt/ovirt_hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py b/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py index 26814c1345..903e576436 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py @@ -420,7 +420,7 @@ def main(): deploy_hosted_engine=( module.params.get('hosted_engine') == 'deploy' ) if module.params.get('hosted_engine') is not None else None, - result_state=(lambda h: h.status == hoststate.UP) if host is None else None, + result_state=hoststate.UP if host is None else None, fail_condition=failed_state if host is None else lambda h: False, ) if module.params['activate'] and host is not None: