From 5e9b13cb949cd4b347c8585bf314577028b5b3eb Mon Sep 17 00:00:00 2001 From: Vincent Roy Date: Thu, 14 Apr 2016 14:45:57 -0300 Subject: [PATCH] Don't let max_fail_percentage affect future plays. --- lib/ansible/plugins/strategy/linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/strategy/linear.py b/lib/ansible/plugins/strategy/linear.py index 871642daffd..6b505230e34 100644 --- a/lib/ansible/plugins/strategy/linear.py +++ b/lib/ansible/plugins/strategy/linear.py @@ -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