Don't let max_fail_percentage affect future plays.
This commit is contained in:
parent
46e9e4c4da
commit
5e9b13cb94
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ class StrategyModule(StrategyBase):
|
|||
if iterator._play.max_fail_percentage is not None and len(results) > 0:
|
||||
percentage = iterator._play.max_fail_percentage / 100.0
|
||||
|
||||
if (len(failed_hosts) / len(results)) > percentage:
|
||||
if (len(iterator.get_failed_hosts()) / len(results)) > percentage:
|
||||
for host in hosts_left:
|
||||
# don't double-mark hosts, or the iterator will potentially
|
||||
# fail them out of the rescue/always states
|
||||
|
|
Loading…
Reference in a new issue