From 2c34a5bdbd0685f449bbb076401b050276094776 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 12 Aug 2015 17:41:39 -0400 Subject: [PATCH] pass list correctly to lookup --- lib/ansible/template/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py index 8952060e3a9..cee617b06e4 100644 --- a/lib/ansible/template/__init__.py +++ b/lib/ansible/template/__init__.py @@ -255,7 +255,7 @@ class Templar: loop_terms = listify_lookup_plugin_terms(terms=args, templar=self, loader=self._loader, fail_on_undefined=True, convert_bare=False) # safely catch run failures per #5059 try: - ran = instance.run(*loop_terms, variables=self._available_variables, **kwargs) + ran = instance.run(loop_terms, variables=self._available_variables, **kwargs) except (AnsibleUndefinedVariable, UndefinedError): raise except Exception, e: