Also check the iterator for failed host status in linear strategy

When only looking at the failed state of the TaskResult, certain failures
cause the linear strategy to fail out sooner than it should and not execute
the always portion of blocks.

Fixes #24301

(cherry picked from commit f217dae938)
pull/25051/head
James Cammarata 9 years ago
parent 8d0ea29df0
commit f67a59bce6

@ -385,7 +385,7 @@ class StrategyModule(StrategyBase):
failed_hosts = []
unreachable_hosts = []
for res in results:
if res.is_failed():
if res.is_failed() and iterator.is_failed(res._host):
failed_hosts.append(res._host.name)
elif res.is_unreachable():
unreachable_hosts.append(res._host.name)

Loading…
Cancel
Save