From 7a0b25d5fa9762ec515258caefe8c70b2575c522 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 5 Sep 2016 23:41:21 -0500 Subject: [PATCH] Fixing incorrect 'task' variable bug in strategy/__init__.py --- lib/ansible/plugins/strategy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/strategy/__init__.py b/lib/ansible/plugins/strategy/__init__.py index 20f07668e6..d2d18558b1 100644 --- a/lib/ansible/plugins/strategy/__init__.py +++ b/lib/ansible/plugins/strategy/__init__.py @@ -341,7 +341,7 @@ class StrategyBase: # find the host we're actually refering too here, which may # be a host that is not really in inventory at all if original_task.delegate_to is not None and original_task.delegate_facts: - task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=task) + task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=original_task) self.add_tqm_variables(task_vars, play=iterator._play) if item is not None: task_vars[loop_var] = item