diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2020-04-20 12:34:37 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-04-22 10:58:15 -0400 |
commit | afc54e3622a147200f7a4ee582db22ed9e864d7d (patch) | |
tree | b6c2bbc0da3bede21fa15cc27e3621bf6355aa4e | |
parent | a6734026702fba955859cab8b2aac67abfd71da0 (diff) | |
download | sos-afc54e3622a147200f7a4ee582db22ed9e864d7d.tar.gz |
[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 <jhunsake@redhat.com>
-rw-r--r-- | sos/collector/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): |