From fb1632ac2dc76b594667d421d5d148d49b012591 Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Thu, 23 Mar 2017 13:23:15 -0500 Subject: [PATCH] Clean up temporary file in net.load_template --- salt/modules/napalm_network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/modules/napalm_network.py b/salt/modules/napalm_network.py index 6d330c72ed..17965cbd0f 100644 --- a/salt/modules/napalm_network.py +++ b/salt/modules/napalm_network.py @@ -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