summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-01-08 01:03:30 -0800
committerRoss Brattain <ross.b.brattain@intel.com>2017-01-17 23:29:43 -0800
commitf3ce6a51de67bdc84f0351549af6268273cf36ec (patch)
tree95e85bf7755ecaae732e33457ef1345141aa1f45
parent4b706011d16f3dfd4fe0a78c5d8706d69deecdeb (diff)
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 <ross.b.brattain@intel.com>
-rw-r--r--yardstick/orchestrator/heat.py2
1 files changed, 1 insertions, 1 deletions
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()