mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
fix for issue #230 - handle template taking 3 args
This commit is contained in:
parent
283b897a1f
commit
fa2aebc8a6
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue