mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #42465 from garethgreenaway/2017_7_remove_tmp_identity_file
[2017.7] Small fix to modules/git.py
This commit is contained in:
commit
488457c5a0
1 changed files with 3 additions and 3 deletions
|
@ -273,10 +273,10 @@ def _git_run(command, cwd=None, user=None, password=None, identity=None,
|
|||
if not salt.utils.is_windows() and 'GIT_SSH' in env:
|
||||
os.remove(env['GIT_SSH'])
|
||||
|
||||
# Cleanup the temporary identify file
|
||||
# Cleanup the temporary identity 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)
|
||||
log.debug('Removing identity file {0}'.format(tmp_identity_file))
|
||||
__salt__['file.remove'](tmp_identity_file)
|
||||
|
||||
# If the command was successful, no need to try additional IDs
|
||||
if result['retcode'] == 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue