From cf1caebf94523d8b4fe18eb719fc2473e0d88509 Mon Sep 17 00:00:00 2001 From: baigk Date: Tue, 2 Feb 2016 16:55:56 +0800 Subject: [PATCH] modify the file parameter of cheetah from string to file object Change-Id: I65f0027bdb6b85e6617bf296ea3561f4ff70a289 Signed-off-by: baigk --- compass/deployment/installers/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compass/deployment/installers/installer.py b/compass/deployment/installers/installer.py index 99e074f2..d8f1740b 100644 --- a/compass/deployment/installers/installer.py +++ b/compass/deployment/installers/installer.py @@ -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')