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

pull/28791/head
Ondra Machacek 7 years ago committed by Ryan Brown
parent d548c477c0
commit 883aede8ac

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

Loading…
Cancel
Save