aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/sosreport.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 0d87ba95..d8c862db 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -1455,13 +1455,13 @@ class SoSReport(object):
if self.opts.list_plugins:
self.list_plugins()
- return True
+ raise SystemExit
if self.opts.list_profiles:
self.list_profiles()
- return True
+ raise SystemExit
if self.opts.list_presets:
self.list_presets()
- return True
+ raise SystemExit
if self.opts.add_preset:
return self.add_preset(self.opts.add_preset)
if self.opts.del_preset:
@@ -1501,6 +1501,5 @@ def main(args):
"""The main entry point"""
sos = SoSReport(args)
sos.execute()
- sos._cleanup()
# vim: set et ts=4 sw=4 :