remove hosts from removed when rescuing

fixes #31707

(cherry picked from commit 618627febd)
This commit is contained in:
Brian Coca 2017-10-13 11:45:28 -04:00 committed by Toshio Kuratomi
parent 2402f1f5b7
commit 09437909e6

View file

@ -370,6 +370,9 @@ class PlayIterator:
elif state.run_state == self.ITERATING_RESCUE: elif state.run_state == self.ITERATING_RESCUE:
# The process here is identical to ITERATING_TASKS, except instead # The process here is identical to ITERATING_TASKS, except instead
# we move into the always portion of the block. # we move into the always portion of the block.
if host.name in self._play._removed_hosts:
self._play._removed_hosts.remove(host.name)
if state.rescue_child_state: if state.rescue_child_state:
(state.rescue_child_state, task) = self._get_next_task_from_state(state.rescue_child_state, host=host, peek=peek, in_child=True) (state.rescue_child_state, task) = self._get_next_task_from_state(state.rescue_child_state, host=host, peek=peek, in_child=True)
if self._check_failed_state(state.rescue_child_state): if self._check_failed_state(state.rescue_child_state):