From 154f58f82d028f71d5666a9503ae60e2fdb5c793 Mon Sep 17 00:00:00 2001 From: Stoned Elipot Date: Tue, 9 Apr 2013 22:38:24 +0200 Subject: [PATCH] Fix Jinja2 filter plugins initialization _get_filter_plugins() checks FILTER_PLUGINS against None hence the latter should be initialized to None. --- lib/ansible/utils/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/template.py b/lib/ansible/utils/template.py index 4158768787..faf0b02d99 100644 --- a/lib/ansible/utils/template.py +++ b/lib/ansible/utils/template.py @@ -31,7 +31,7 @@ import pwd # TODO: refactor this file -FILTER_PLUGINS = {} +FILTER_PLUGINS = None _LISTRE = re.compile(r"(\w+)\[(\d+)\]") JINJA2_OVERRIDE='#jinja2:'