diff options
author | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-03-29 16:37:02 +0000 |
---|---|---|
committer | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-03-29 16:37:02 +0000 |
commit | 8c1c474f305becc2c05c07812fa64157e98bc21f (patch) | |
tree | eb0a5a9e9346210cbb442348d5c48aee6a738e80 /src/lib | |
parent | 545dac8a633f9ef973c07b25a0e2a3f5cc9baf5b (diff) | |
download | sos-8c1c474f305becc2c05c07812fa64157e98bc21f.tar.gz |
Added a checkenabled() function which can be used to disable a plugin at run-time.
Planning to add a command-line option to force the execution of plugins.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@105 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/sos/plugintools.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/sos/plugintools.py b/src/lib/sos/plugintools.py index 3e7e9881..b5741e27 100644 --- a/src/lib/sos/plugintools.py +++ b/src/lib/sos/plugintools.py @@ -380,6 +380,12 @@ class PluginBase: raise KeyboardInterrupt except: self.cInfo['soslog'].error("Error collecting output of '%s'" % prog,) + + def checkenabled(self): + """ This function can be overidden to let the plugin decide whether + it should run or not. + """ + return True def collect(self): """ This function has been replaced with setup(). Please change your |