Merge pull request #42464 from garethgreenaway/2016_11_remove_tmp_identity_file

[2016.11] Small fix to modules/git.py
This commit is contained in:
Mike Place 2017-07-21 16:28:56 -05:00 committed by GitHub
commit 4bf35a74de

View File

@ -261,7 +261,7 @@ def _git_run(command, cwd=None, user=None, password=None, identity=None,
# Cleanup the temporary identify file
if tmp_identity_file and os.path.exists(tmp_identity_file):
log.debug('Removing identify file {0}'.format(tmp_identity_file))
#__salt__['file.remove'](tmp_identity_file)
__salt__['file.remove'](tmp_identity_file)
# If the command was successful, no need to try additional IDs
if result['retcode'] == 0: