summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2019-06-28 22:19:27 +0200
committerGitHub <noreply@github.com>2019-06-28 22:19:27 +0200
commit6cf6f5a34bebe01f96782a171db8d83d4e7828ca (patch)
tree90eb9cb093c52d067bab0846ab91a4735d5fe253 /bin
parentupdate to fix a bug. (#58200) (diff)
downloadansible-6cf6f5a34bebe01f96782a171db8d83d4e7828ca.tar.xz
ansible-6cf6f5a34bebe01f96782a171db8d83d4e7828ca.zip
Use atexit to cleanup tmp dirs (#56532)
* Wrap everything in try/except to avoid leaving files behind * Add unit tests, integration tests, and changelog * Do text the correct way
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible3
1 files changed, 0 insertions, 3 deletions
diff --git a/bin/ansible b/bin/ansible
index 0290ee9dfe..03891b728f 100755
--- a/bin/ansible
+++ b/bin/ansible
@@ -149,8 +149,5 @@ if __name__ == '__main__':
log_only = True
display.display(u"the full traceback was:\n\n%s" % to_text(traceback.format_exc()), log_only=log_only)
exit_code = 250
- finally:
- # Remove ansible tmpdir
- shutil.rmtree(C.DEFAULT_LOCAL_TMP, True)
sys.exit(exit_code)