From 477a602fdf4e22e964eedcc2cb0c6b22e6908f24 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Fri, 30 Mar 2018 13:55:17 +0200 Subject: [PATCH] ovirt_hosts: Fix failed_state after PM fence (#38102) --- lib/ansible/modules/cloud/ovirt/ovirt_hosts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py b/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py index c66c6cf7d76..7ade8a5b2da 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_hosts.py @@ -539,7 +539,7 @@ def main(): action='fence', action_condition=lambda h: h.status == hoststate.DOWN, wait_condition=lambda h: h.status in [hoststate.UP, hoststate.MAINTENANCE], - fail_condition=failed_state, + fail_condition=hosts_module.failed_state_after_reinstall, fence_type='start', ) elif state == 'stopped': @@ -560,7 +560,7 @@ def main(): ret = hosts_module.action( action='fence', wait_condition=lambda h: h.status == hoststate.UP, - fail_condition=failed_state, + fail_condition=hosts_module.failed_state_after_reinstall, fence_type='restart', ) elif state == 'reinstalled':