Skip to content

Commit

Permalink
Don't let max_fail_percentage affect future plays.
Browse files Browse the repository at this point in the history
  • Loading branch information
vroy authored and jimi-c committed May 18, 2016
1 parent 994e57f commit 59d3ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/strategy/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def run(self, iterator, play_context):
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
Expand Down

0 comments on commit 59d3ae6

Please sign in to comment.