Minor formatting
This commit is contained in:
parent
d7206d84bb
commit
9ac25bb8f6
1 changed files with 9 additions and 6 deletions
|
@ -386,8 +386,10 @@ def template_from_file(basedir, path, vars):
|
||||||
uid = vars['template_uid'],
|
uid = vars['template_uid'],
|
||||||
file = vars['template_path']
|
file = vars['template_path']
|
||||||
)
|
)
|
||||||
vars['ansible_managed'] = time.strftime(managed_str,
|
vars['ansible_managed'] = time.strftime(
|
||||||
time.localtime(os.path.getmtime(realpath)))
|
managed_str,
|
||||||
|
time.localtime(os.path.getmtime(realpath))
|
||||||
|
)
|
||||||
|
|
||||||
# This line performs deep Jinja2 magic that uses the _jinja2_vars object for vars
|
# This line performs deep Jinja2 magic that uses the _jinja2_vars object for vars
|
||||||
# Ideally, this could use some API where setting shared=True and the object won't get
|
# Ideally, this could use some API where setting shared=True and the object won't get
|
||||||
|
@ -399,6 +401,7 @@ def template_from_file(basedir, path, vars):
|
||||||
return template(basedir, res, vars)
|
return template(basedir, res, vars)
|
||||||
|
|
||||||
def _get_filter_plugins():
|
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
|
||||||
|
|
Loading…
Reference in a new issue