No need to write down the nested template file

Method output_to_yaml_files_dict() in hot_template.py was already returned
a nested template. Tacker can use this method
to achieve the nested template. However, the nested template file still
requires to write down in Heat Translator. That made permission denied in
Tacker function test when the nested template tries to write in remote
repository. This patch will fix the above issue.

Change-Id: I3087cdc92fcab2d76566719d8a6e206e3d948523
This commit is contained in:
doantungbk 2017-07-05 00:14:54 -07:00
parent 4a37a5680c
commit 9f3ed0229e
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class TOSCATranslator(object):
"output.yaml",
self.node_translator.hot_template_version)
for name, content in six.iteritems(yaml_files):
if name != "output.yaml":
if name != "output.yaml" and "_res.yaml" not in name:
with open(name, 'w+') as f:
f.write(content)