mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #40280 from bewing/bp_40273
Clean up temporary file in net.load_template
This commit is contained in:
commit
6c29c81d01
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue