aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-06-22 16:07:57 +0100
committerBryn M. Reeves <bmr@redhat.com>2015-06-22 16:07:57 +0100
commita7ef3ca46fea4c32a39b63dd22b73ffab2605469 (patch)
tree2798dbd0dd175ba2ef637fc4da02b002539fb2e9
parent4764fd7f68ee3fd9f8b7b86fc000730e0435acbd (diff)
downloadsos-a7ef3ca46fea4c32a39b63dd22b73ffab2605469.tar.gz
[sosreport] fix command-line report defaults
Defaults for sos options are currently set in two places: the option class itself (used for both API and command line uses), and in the option parser object created to parse command lines. When commit cbd75cb changed report generation to default-enabled the change was only made to the SoSOptions variable; the parser call still passed default=False (the option was renamed from --report to --no-report but without changing the sense of the default itself). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/sosreport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 12267266..9315438b 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -615,7 +615,7 @@ class SoSOptions(object):
default=None)
parser.add_option("--no-report", action="store_true",
dest="report",
- help="Disable HTML/XML reporting", default=False)
+ help="Disable HTML/XML reporting", default=True)
parser.add_option("-z", "--compression-type", dest="compression_type",
help="compression technology to use [auto, "
"gzip, bzip2, xz] (default=auto)",