From c02173880af0a35cdfb05936421182e79f8712c2 Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Thu, 19 Oct 2017 21:03:27 +0200 Subject: [PATCH] git: remove duplicate ssh_wrapper cleanup (#31827) --- lib/ansible/modules/source_control/git.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/ansible/modules/source_control/git.py b/lib/ansible/modules/source_control/git.py index c84fd9592b..f8c8ea9724 100644 --- a/lib/ansible/modules/source_control/git.py +++ b/lib/ansible/modules/source_control/git.py @@ -1161,14 +1161,6 @@ def main(): create_archive(git_path, module, dest, archive, version, repo, result) - # cleanup the wrapper script - if ssh_wrapper: - try: - os.remove(ssh_wrapper) - except OSError: - # No need to fail if the file already doesn't exist - pass - module.exit_json(**result)