Clean up temporary file in net.load_template

This commit is contained in:
Brandon Ewing 2017-03-23 13:23:15 -05:00
parent 7cde4936d9
commit fb1632ac2d

View File

@ -1257,6 +1257,7 @@ def load_template(template_name,
_loaded['comment'] = 'Error while rendering the template.'
return _loaded
_rendered = open(_temp_tpl_file).read()
__salt__['file.remove'](_temp_tpl_file)
else:
return _loaded # exit