aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stokes <adam.stokes@ubuntu.com>2013-11-01 15:42:40 -0400
committerAdam Stokes <adam.stokes@ubuntu.com>2013-11-01 15:42:40 -0400
commitcbd75cbfa3edc185988cee927d56ab7076a833d9 (patch)
tree6b79b94eccb3ab74d6899e1f241dab335048daa4
parent4d8ddfbbb9dcce27e16212fafbd0e9d9a3ad995a (diff)
downloadsos-cbd75cbfa3edc185988cee927d56ab7076a833d9.tar.gz
Generate report by default
Fixes #2 Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
-rw-r--r--sos/sosreport.py8
1 files 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()