From cbd75cbfa3edc185988cee927d56ab7076a833d9 Mon Sep 17 00:00:00 2001 From: Adam Stokes Date: Fri, 1 Nov 2013 15:42:40 -0400 Subject: Generate report by default Fixes #2 Signed-off-by: Adam Stokes --- sos/sosreport.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sos/sosreport.py b/sos/sosreport.py index afe61f2f..2451439b 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -211,7 +211,7 @@ class SoSOptions(object): _customer_name = "" _config_file = "" _tmp_dir = "" - _report = False + _report = True _profiler = False _compression_type = 'auto' @@ -497,9 +497,9 @@ class SoSOptions(object): parser.add_option("--tmp-dir", action="store", dest="tmp_dir", help="specify alternate temporary directory", default=None) - parser.add_option("--report", action="store_true", + parser.add_option("--no-report", action="store_true", dest="report", - help="Enable HTML/XML reporting", default=False) + help="Disable HTML/XML reporting", default=False) parser.add_option("--profile", action="store_true", dest="profiler", help="turn on profiling", default=False) @@ -1154,7 +1154,7 @@ class SoSReport(object): self.prework() self.setup() self.collect() - if self.opts.report: + if not self.opts.report: self.report() self.html_report() self.plain_report() -- cgit