1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ovirt_hosts: Fix waiting state of adding a new host (#28771)

This commit is contained in:
Ondra Machacek 2017-08-29 19:01:36 +02:00 committed by Ryan Brown
parent d548c477c0
commit 883aede8ac

View file

@ -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: