modify the file parameter of cheetah from string to file object
Change-Id: I48081db922adcbdc319d39e73af43aaa480342e1 Signed-off-by: baigk <baiguoku@huawei.com>
This commit is contained in:
parent
c8387443c5
commit
b3e56b081a
@ -254,7 +254,7 @@ class AnsibleInstaller(PKInstaller):
|
||||
searchList.append(copy_vars_dict)
|
||||
|
||||
# Load specific template for current adapter
|
||||
tmpl = Template(file=tmpl_path, searchList=searchList)
|
||||
tmpl = Template(file=open(tmpl_path, "r"), searchList=searchList)
|
||||
return tmpl.respond()
|
||||
|
||||
def _create_ansible_run_env(self, env_name, ansible_run_destination):
|
||||
|
Loading…
x
Reference in New Issue
Block a user