aboutsummaryrefslogtreecommitdiffstats
path: root/sos/plugins/__init__.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-02-11 21:10:48 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-02-11 21:10:48 +0000
commitcadf7b420156acf57ff6dad03b4fca1f74349547 (patch)
tree268d8d6e68766c375050d8e025f9601799f4c618 /sos/plugins/__init__.py
parentdace7ab27b51fe67ed98b0328c80c8eea9da3a87 (diff)
downloadsos-cadf7b420156acf57ff6dad03b4fca1f74349547.tar.gz
[sosreport,plugin] add --experimental and ExperimentalPlugin tag
Add an ExperimentalPlugin tagging class and an --experimental command line option. This can be used to encourage testing of new plugins and plugin ports without indicating full support. Fixes #470. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos/plugins/__init__.py')
-rw-r--r--sos/plugins/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 9d126a51..4ddd185d 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -760,6 +760,11 @@ class IndependentPlugin(object):
pass
+class ExperimentalPlugin(object):
+ """Tagging class that indicates that this plugin is experimental"""
+ pass
+
+
def import_plugin(name, superclasses=None):
"""Import name as a module and return a list of all classes defined in that
module. superclasses should be a tuple of valid superclasses to import,