Commit 4d1f4479 by Michael DeHaan

Merge pull request #3650 from bcoca/forking_optimizations

forking least possible
parents baffa8df 576962d3
......@@ -892,6 +892,9 @@ class Runner(object):
# host.
p = utils.plugins.action_loader.get(self.module_name, self)
if self.forks == 0 or self.forks > len(hosts):
self.forks = len(hosts)
if p and getattr(p, 'BYPASS_HOST_LOOP', None):
# Expose the current hostgroup to the bypassing plugins
......
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