aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwbernin <jwbernin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-12-16 00:44:16 +0000
committerjwbernin <jwbernin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-12-16 00:44:16 +0000
commitbf96c8a2912971b243f8d3dc223b040567fc93ef (patch)
tree4b8e27fee806fe0b2d737b5d0629891b14cf3d4e
parentfc89acf6797f3c642ba608e572a94065897474e9 (diff)
downloadsos-bf96c8a2912971b243f8d3dc223b040567fc93ef.tar.gz
Don't load a plugin when it's excluded - we don't want to deal with it at all
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@65 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rwxr-xr-xsrc/sosreport2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sosreport b/src/sosreport
index a04108dd..5f7d5cf8 100755
--- a/src/sosreport
+++ b/src/sosreport
@@ -173,7 +173,7 @@ def sosreport():
sys.exit()
for plug in plugins:
- if ((plug[-3:] == '.py') and (plug != "__init__.py")):
+ if ((plug[-3:] == '.py') and (plug != "__init__.py") and (plug[:-3] not in __cmdLineOpts__.noplugins) ):
try:
plugbase = plug[:-3]
pidot = "sos.plugins." + plugbase