Clean up temporary file in net.load_template

This commit is contained in:
Brandon Ewing 2017-03-23 13:23:15 -05:00
parent b7f9100e6d
commit f028e939f5

View file

@ -1195,6 +1195,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