diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-01-08 01:03:30 -0800 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-01-17 23:29:43 -0800 |
commit | f3ce6a51de67bdc84f0351549af6268273cf36ec (patch) | |
tree | 95e85bf7755ecaae732e33457ef1345141aa1f45 | |
parent | 4b706011d16f3dfd4fe0a78c5d8706d69deecdeb (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.py | 2 |
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() |