aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-04-17 11:51:09 +0200
committerBryn M. Reeves <bmr@redhat.com>2019-04-30 17:23:12 +0100
commit84822ff1bbe2d5543daa8059b0a2270c88e473d6 (patch)
treee7bcaa2b08bc34e4c375de831c3f922bbf3589b0
parent7c8c45dad3481cfaae3d3af9c188218aa14a3a6a (diff)
downloadsos-84822ff1bbe2d5543daa8059b0a2270c88e473d6.tar.gz
[sosreport] initialize disabled plugins properly when parsing sos.conf
opts.noplugins is referred when parsing "tunables" section, so the variable must be set to empty list every time. Resolves: #1651 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/__init__.py b/sos/__init__.py
index dfc7ed5f..ed59025a 100644
--- a/sos/__init__.py
+++ b/sos/__init__.py
@@ -250,8 +250,8 @@ class SoSOptions(object):
optlist.extend(SoSOptions._opt_to_args(opt, val))
opts._merge_opts(argparser.parse_args(optlist), is_default)
+ opts.noplugins = []
if config.has_option("plugins", "disable"):
- opts.noplugins = []
opts.noplugins.extend([plugin.strip() for plugin in
config.get("plugins", "disable").split(',')])