Removed explicit deleting of file with NamedTemporaryFile

This commit is contained in:
PCoder 2017-09-13 02:46:54 +05:30
commit 221af96c8b
2 changed files with 0 additions and 12 deletions

View file

@ -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