27 lines
724 B
Diff
27 lines
724 B
Diff
commit 08121d877741e33333a1ae01280f6898d7d4ca15
|
|
Author: Bryn M. Reeves <bmr@redhat.com>
|
|
Date: Thu Dec 10 11:50:49 2015 +0000
|
|
|
|
[sosreport] clean up private temporary directory
|
|
|
|
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
diff --git a/sos/sosreport.py b/sos/sosreport.py
|
|
index fe251ed..bc7792a 100644
|
|
--- a/sos/sosreport.py
|
|
+++ b/sos/sosreport.py
|
|
@@ -1544,7 +1544,12 @@ class SoSReport(object):
|
|
|
|
self.policy.display_results(archive, directory, checksum)
|
|
|
|
- self.tempfile_util.clean()
|
|
+ # clean up
|
|
+ if self.tempfile_util:
|
|
+ self.tempfile_util.clean()
|
|
+ if self.tmpdir:
|
|
+ rmtree(self.tmpdir)
|
|
+
|
|
return True
|
|
|
|
def verify_plugins(self):
|