aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sos/plugintools.py6
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