Remove unneccessary construction of Jinja2 environment object.
parent
b869551a4c
commit
4e79bd0872
|
@ -420,7 +420,6 @@ def _get_filter_plugins():
|
||||||
global FILTER_PLUGINS
|
global FILTER_PLUGINS
|
||||||
if FILTER_PLUGINS is not None:
|
if FILTER_PLUGINS is not None:
|
||||||
return FILTER_PLUGINS
|
return FILTER_PLUGINS
|
||||||
environment = jinja2.Environment(trim_blocks=True)
|
|
||||||
FILTER_PLUGINS = {}
|
FILTER_PLUGINS = {}
|
||||||
from ansible import utils
|
from ansible import utils
|
||||||
for filter_plugin in utils.plugins.filter_loader.all():
|
for filter_plugin in utils.plugins.filter_loader.all():
|
||||||
|
|
Loading…
Reference in New Issue