diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-09-28 14:17:55 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-09-28 14:17:55 +0000 |
commit | fce2c82463a51d0c7c425e5ca36085b62b8e49fc (patch) | |
tree | ab9993d71a26ed5934db9de4d2ea13b98f957552 | |
parent | 32bac7fcc310e4a8fe1eb97d58713de0e5e2a9de (diff) | |
download | sos-fce2c82463a51d0c7c425e5ca36085b62b8e49fc.tar.gz |
resolves rhbz#523274
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@646 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rwxr-xr-x | src/sosreport | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sosreport b/src/sosreport index 59a577cd..2c908d57 100755 --- a/src/sosreport +++ b/src/sosreport @@ -470,9 +470,12 @@ def sosreport(): # disable plugins that we read from conf files conf_disable_plugins_list = [] if config.has_section("plugins"): - conf_disable_plugins = config.get("plugins", "disable").split(',') - for item in conf_disable_plugins: - conf_disable_plugins_list.append(item.strip()) + 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 # generate list of available plugins plugins = os.listdir(pluginpath) |