From afc54e3622a147200f7a4ee582db22ed9e864d7d Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Mon, 20 Apr 2020 12:34:37 -0400 Subject: [collector] Always cleanup on graceful exit Rather than leave spurious temp directories on the filesystem from gracefully failed runs, always run cleanup(). Signed-off-by: Jake Hunsaker --- sos/collector/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sos/collector/__init__.py b/sos/collector/__init__.py index 963648f3..8c4291b0 100644 --- a/sos/collector/__init__.py +++ b/sos/collector/__init__.py @@ -366,6 +366,7 @@ class SoSCollector(SoSComponent): self.close_all_connections() except Exception: pass + self.cleanup() sys.exit(error) def _parse_options(self): -- cgit