Determine failed hosts with _check_failed_state() (#16566)

(cherry picked from commit 8bff6154a6)
pull/16670/head
Martin Matuska 9 years ago committed by James Cammarata
parent 6bcdb575e8
commit fbf8f5bccb

@ -472,7 +472,7 @@ class PlayIterator:
self._host_states[host.name] = s self._host_states[host.name] = s
def get_failed_hosts(self): def get_failed_hosts(self):
return dict((host, True) for (host, state) in iteritems(self._host_states) if state.run_state == self.ITERATING_COMPLETE and state.fail_state != self.FAILED_NONE) return dict((host, True) for (host, state) in iteritems(self._host_states) if self._check_failed_state(state))
def _check_failed_state(self, state): def _check_failed_state(self, state):
if state is None: if state is None:

Loading…
Cancel
Save