From: Ross Brattain Date: Sun, 8 Jan 2017 09:03:30 +0000 (-0800) Subject: heat: close file before parsing template X-Git-Tag: danube.1.0~88^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F27151%2F1;p=yardstick.git 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 --- 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()