modify the file parameter of cheetah from string to file object

Change-Id: I65f0027bdb6b85e6617bf296ea3561f4ff70a289
Signed-off-by: baigk <baiguoku@huawei.com>
This commit is contained in:
baigk 2016-02-02 16:55:56 +08:00
parent 75f4b5d85b
commit cf1caebf94
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class BaseInstaller(object):
base_config = json.loads(json.dumps(base_config), encoding='utf-8')
# Load specific template for current adapter
tmpl = Template(file=tmpl_path, searchList=searchList)
tmpl = Template(file=open(tmpl_path, "r"), searchList=searchList)
config = json.loads(tmpl.respond(), encoding='utf-8')
config = json.loads(json.dumps(config), encoding='utf-8')