From bf96c8a2912971b243f8d3dc223b040567fc93ef Mon Sep 17 00:00:00 2001 From: jwbernin Date: Sat, 16 Dec 2006 00:44:16 +0000 Subject: 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 --- src/sosreport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit