summaryrefslogtreecommitdiff
path: root/lib/ansible/template/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/template/__init__.py')
-rw-r--r--lib/ansible/template/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py
index 3c9c476885..3c27587cb8 100644
--- a/lib/ansible/template/__init__.py
+++ b/lib/ansible/template/__init__.py
@@ -573,9 +573,8 @@ class JinjaPluginIntercept(MutableMapping):
except Exception as e:
raise TemplateSyntaxError(to_native(e), 0)
- method_map = getattr(plugin_impl, self._method_map_name)
-
try:
+ method_map = getattr(plugin_impl, self._method_map_name)
func_items = iteritems(method_map())
except Exception as e:
display.warning(