mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Clean up temporary file in net.load_template
This commit is contained in:
parent
7cde4936d9
commit
fb1632ac2d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user