mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
ovirt_hosts: Fix failed_state after PM fence (#38102)
This commit is contained in:
@@ -539,7 +539,7 @@ def main():
|
|||||||
action='fence',
|
action='fence',
|
||||||
action_condition=lambda h: h.status == hoststate.DOWN,
|
action_condition=lambda h: h.status == hoststate.DOWN,
|
||||||
wait_condition=lambda h: h.status in [hoststate.UP, hoststate.MAINTENANCE],
|
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',
|
fence_type='start',
|
||||||
)
|
)
|
||||||
elif state == 'stopped':
|
elif state == 'stopped':
|
||||||
@@ -560,7 +560,7 @@ def main():
|
|||||||
ret = hosts_module.action(
|
ret = hosts_module.action(
|
||||||
action='fence',
|
action='fence',
|
||||||
wait_condition=lambda h: h.status == hoststate.UP,
|
wait_condition=lambda h: h.status == hoststate.UP,
|
||||||
fail_condition=failed_state,
|
fail_condition=hosts_module.failed_state_after_reinstall,
|
||||||
fence_type='restart',
|
fence_type='restart',
|
||||||
)
|
)
|
||||||
elif state == 'reinstalled':
|
elif state == 'reinstalled':
|
||||||
|
|||||||
Reference in New Issue
Block a user