Simply being in an always block shouldn't mean a host did not fail

Previously the changed code was necessary, however it is now problematic
as we've started using the is_failed() method in other places in the code.
Additional changes at the strategy layer should make this safe to remove
now.

Fixes #15625
pull/15825/head
James Cammarata 8 years ago
parent 37737ca6c1
commit 9d9a451b34

@ -475,8 +475,7 @@ class PlayIterator:
if state is None:
return False
elif state.fail_state != self.FAILED_NONE:
if state.run_state == self.ITERATING_RESCUE and state.fail_state&self.FAILED_RESCUE == 0 or \
state.run_state == self.ITERATING_ALWAYS and state.fail_state&self.FAILED_ALWAYS == 0:
if state.run_state == self.ITERATING_RESCUE and state.fail_state&self.FAILED_RESCUE == 0:
return False
else:
return True

Loading…
Cancel
Save