Commit 4025695c by James Cammarata

Merge branch 'devel' of https://github.com/kavink/ansible into kavink-devel

parents 6e9fa501 c24f6f43
......@@ -573,8 +573,9 @@ class PlayBook(object):
host_list = self._list_available_hosts(play.hosts)
# Set max_fail_pct to 0, So if any hosts fails, bail out
if task.any_errors_fatal and len(host_list) < hosts_count:
host_list = None
play.max_fail_pct = 0
# If threshold for max nodes failed is exceeded , bail out.
if (hosts_count - len(host_list)) > int((play.max_fail_pct)/100.0 * hosts_count):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment