From 2576f480fd02ab9cdec33bb879b6b8477ffb706a Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 30 Jun 2015 13:57:47 -0400 Subject: [PATCH] Restoring a state check to play_iterator, which otherwise broke block functionality --- lib/ansible/executor/play_iterator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py index 585c6556eb3..8794e7e4034 100644 --- a/lib/ansible/executor/play_iterator.py +++ b/lib/ansible/executor/play_iterator.py @@ -242,7 +242,7 @@ class PlayIterator: self._host_states[host.name] = s def get_failed_hosts(self): - return dict((host, True) for (host, state) in self._host_states.iteritems() if state.fail_state != self.FAILED_NONE) + return dict((host, True) for (host, state) in self._host_states.iteritems() if state.run_state == self.ITERATING_COMPLETE and state.fail_state != self.FAILED_NONE) def get_original_task(self, host, task): '''