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:
baigk 2016-02-02 19:22:04 +08:00
parent c8387443c5
commit b3e56b081a

View File

@ -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):