From f3ce6a51de67bdc84f0351549af6268273cf36ec Mon Sep 17 00:00:00 2001 From: Ross Brattain Date: Sun, 8 Jan 2017 01:03:30 -0800 Subject: heat: close file before parsing template we don't need to keep the file open once we have read it Change-Id: I7234fe91d2080d357c7a6506543cef067a9c2aac Signed-off-by: Ross Brattain --- yardstick/orchestrator/heat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yardstick/orchestrator/heat.py b/yardstick/orchestrator/heat.py index 7e0f360c4..3e47dcbb6 100644 --- a/yardstick/orchestrator/heat.py +++ b/yardstick/orchestrator/heat.py @@ -179,7 +179,7 @@ class HeatTemplate(HeatObject): with open(template_file) as stream: print("Parsing external template:", template_file) template_str = stream.read() - self._template = template_format.parse(template_str) + self._template = template_format.parse(template_str) self._parameters = heat_parameters else: self._init_template() -- cgit 1.2.3-korg