1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add max_passes to the debug strategy override of _process_pending_results

Fixes #17520
This commit is contained in:
James Cammarata 2016-09-22 10:49:04 -05:00
parent a2547db5b5
commit 6666d13654

View file

@ -38,9 +38,9 @@ class StrategyModule(LinearStrategyModule):
super(StrategyModule, self)._queue_task(host, task, task_vars, play_context) super(StrategyModule, self)._queue_task(host, task, task_vars, play_context)
def _process_pending_results(self, iterator, one_pass=False): def _process_pending_results(self, iterator, one_pass=False, max_passes=None):
if not hasattr(self, "curr_host"): if not hasattr(self, "curr_host"):
return super(StrategyModule, self)._process_pending_results(iterator, one_pass) return super(StrategyModule, self)._process_pending_results(iterator, one_pass, max_passes)
prev_host_state = iterator.get_host_state(self.curr_host) prev_host_state = iterator.get_host_state(self.curr_host)
results = super(StrategyModule, self)._process_pending_results(iterator, one_pass) results = super(StrategyModule, self)._process_pending_results(iterator, one_pass)