mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 20:02:45 +00:00
Small fix so template plugins can see inject variables.
This commit is contained in:
@@ -489,6 +489,7 @@ def template_from_string(basedir, data, vars):
|
||||
return data
|
||||
|
||||
def my_lookup(*args, **kwargs):
|
||||
kwargs['vars'] = vars
|
||||
return lookup(*args, basedir=basedir, **kwargs)
|
||||
|
||||
t.globals['lookup'] = my_lookup
|
||||
|
||||
Reference in New Issue
Block a user