diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-09-14 11:28:31 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-09-16 11:06:24 +0100 |
commit | 01564fb0130168e2718eaf56d1dc722910fabded (patch) | |
tree | 52ec70b74a20bf521839df857a7bdf25dfcd32ad /sos/plugins/processor.py | |
parent | 8674efc6516fab907af3dafafc6a55683190349e (diff) | |
download | sos-01564fb0130168e2718eaf56d1dc722910fabded.tar.gz |
[plugins] add initial profile tags to all plugins
Add an initial profile tag list to each plugin base class. A tag
list is a tuple of strings indicating the set of profiles that
should select this plugin, e.g.:
plugin_name = "qux"
profiles = ('system', 'storage', 'foo)
A follow up patch will add infrastructure to use these tag lists
to allow the user to select a logically-related set of plugins by
specifying a profile on the command line:
# sosreport -v --batch --profile=storage
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos/plugins/processor.py')
-rw-r--r-- | sos/plugins/processor.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/processor.py b/sos/plugins/processor.py index cc35a041..9f12c3ea 100644 --- a/sos/plugins/processor.py +++ b/sos/plugins/processor.py @@ -20,6 +20,7 @@ class Processor(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): """ plugin_name = 'processor' + profiles = ('system', 'hardware') files = ('/proc/cpuinfo',) packages = ('cpufreq-utils') |