aboutsummaryrefslogtreecommitdiffstats
path: root/src/sosreport
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-09-28 15:24:23 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-09-28 15:24:23 +0000
commit42aafc86d413101cfba697884dfb700360fa4bd8 (patch)
treec0d6a601189bab248ad853c5f1d3ee6c16314878 /src/sosreport
parentfce2c82463a51d0c7c425e5ca36085b62b8e49fc (diff)
downloadsos-42aafc86d413101cfba697884dfb700360fa4bd8.tar.gz
rework reading a part in config
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@647 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/sosreport')
-rwxr-xr-xsrc/sosreport12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/sosreport b/src/sosreport
index 2c908d57..2edc2b90 100755
--- a/src/sosreport
+++ b/src/sosreport
@@ -469,13 +469,11 @@ def sosreport():
# disable plugins that we read from conf files
conf_disable_plugins_list = []
- if config.has_section("plugins"):
- try:
- conf_disable_plugins = config.get("plugins", "disable").split(',')
- for item in conf_disable_plugins:
- conf_disable_plugins_list.append(item.strip())
- except ConfigParser.NoOptionError:
- conf_disable_plugins = None
+ conf_disable_plugins = None
+ if config.has_option("plugins", "disable"):
+ conf_disable_plugins = config.get("plugins", "disable").split(',')
+ for item in conf_disable_plugins:
+ conf_disable_plugins_list.append(item.strip())
# generate list of available plugins
plugins = os.listdir(pluginpath)