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:
parent
75f4b5d85b
commit
cf1caebf94
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user