mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
fix for issue #230 - handle template taking 3 args
This commit is contained in:
@@ -249,10 +249,10 @@ def template(text, vars, setup_cache):
|
||||
def double_template(text, vars, setup_cache):
|
||||
return template(template(text, vars, setup_cache), vars, setup_cache)
|
||||
|
||||
def template_from_file(path, vars):
|
||||
def template_from_file(path, vars, setup_cache):
|
||||
''' run a file through the templating engine '''
|
||||
data = file(path).read()
|
||||
return template(data, vars)
|
||||
return template(data, vars, setup_cache)
|
||||
|
||||
def parse_yaml(data):
|
||||
return yaml.load(data)
|
||||
|
||||
Reference in New Issue
Block a user