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

Don't drop noops from task counting code in linear strategy

This commit is contained in:
James Cammarata 2016-01-06 09:58:20 -05:00
parent 9ac9c75d76
commit 90cb7e1937

View file

@ -67,12 +67,6 @@ class StrategyModule(StrategyBase):
host_tasks_to_run = [(host, state_task) host_tasks_to_run = [(host, state_task)
for host, state_task in iteritems(host_tasks) for host, state_task in iteritems(host_tasks)
if state_task and state_task[1]] if state_task and state_task[1]]
# Drop noops
host_tasks_to_run = [
(host, (state, task))
for host, (state, task) in host_tasks_to_run
if task.action != 'meta' or task.args.get('_raw_params') != 'noop'
]
if host_tasks_to_run: if host_tasks_to_run:
lowest_cur_block = min( lowest_cur_block = min(