From c419cacb04b0b77a3e0fab54f500449e156fb4a4 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 17 Aug 2015 17:58:35 -0400 Subject: [PATCH] check if host task is none before continuing fixes #11982 --- lib/ansible/plugins/strategies/linear.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/strategies/linear.py b/lib/ansible/plugins/strategies/linear.py index dd24b8bf0f9..527843c6923 100644 --- a/lib/ansible/plugins/strategies/linear.py +++ b/lib/ansible/plugins/strategies/linear.py @@ -88,10 +88,12 @@ class StrategyModule(StrategyBase): if host_state_task is None: continue (s, t) = host_state_task + if t is None: + continue if s.run_state == cur_state and s.cur_block == cur_block: new_t = iterator.get_next_task_for_host(host) #if new_t != t: - # raise AnsibleError("iterator error, wtf?") + # raise AnsibleError("iterator error, wtf?") FIXME rvals.append((host, t)) else: rvals.append((host, noop_task))