Removed explicit deleting of file with NamedTemporaryFile
This commit is contained in:
parent
511a1551d5
commit
221af96c8b
2 changed files with 0 additions and 12 deletions
|
|
@ -68,12 +68,6 @@ def save_ssh_key(self, hosts, keys):
|
|||
except Exception as cdist_exception:
|
||||
logger.error(cdist_exception)
|
||||
return_value = False
|
||||
try:
|
||||
os.remove(tmp_manifest.name)
|
||||
except FileNotFoundError:
|
||||
logger.debug(
|
||||
"{} could not be deleted because it doesn't exist".format(
|
||||
tmp_manifest.name))
|
||||
return return_value
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue