1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes #4608 add lookup to template globals to make plugins work again

This commit is contained in:
James Tanner 2013-10-22 12:00:54 -04:00
parent 4f13967386
commit 214b0b052c

View file

@ -504,6 +504,8 @@ def template_from_string(basedir, data, vars, fail_on_undefined=False):
else:
return data
t.globals['lookup'] = my_lookup
try:
return t.render(vars)
except jinja2.exceptions.UndefinedError: