mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
181dd058eb
commit
3d5523fbb7
1 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@ import ast
|
|||
import traceback
|
||||
|
||||
from ansible.utils.string_functions import count_newlines_from_end
|
||||
from ansible.utils import to_bytes
|
||||
|
||||
class Globals(object):
|
||||
|
||||
|
@ -272,7 +273,7 @@ def template_from_file(basedir, path, vars, vault_password=None):
|
|||
managed_str = managed_default.format(
|
||||
host = vars['template_host'],
|
||||
uid = vars['template_uid'],
|
||||
file = vars['template_path']
|
||||
file = to_bytes(vars['template_path'])
|
||||
)
|
||||
vars['ansible_managed'] = time.strftime(
|
||||
managed_str,
|
||||
|
|
Loading…
Reference in a new issue