diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2016-05-07 12:11:51 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-05-24 17:57:54 +0100 |
commit | 1cbe9f52c9fc63724bd6e1bebbf536e19072c545 (patch) | |
tree | bba4da5b009ba20c6b6aec7984ed353e11dbd4a5 | |
parent | 347502277525516ba3fd0321d0814c7c8b34580d (diff) | |
download | sos-1cbe9f52c9fc63724bd6e1bebbf536e19072c545.tar.gz |
[plugin] Rename several plugins according to the plugin filename
Set plugin_name accordingly to the plugin filename, to let
"sosreport -l" to print plugin names that can be used in
"sosreport -[o|e|n]".
Affected plugins:
sos/plugins/cs.py: plugin_name = 'certificatesystem'
sos/plugins/ds.py: plugin_name = 'directoryserver'
sos/plugins/hts.py: plugin_name = 'hardwaretestsuite'
sos/plugins/subscription_manager.py: plugin_name = 'subscription-manager'
Resolves: #811
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/cs.py | 2 | ||||
-rw-r--r-- | sos/plugins/ds.py | 2 | ||||
-rw-r--r-- | sos/plugins/hts.py | 2 | ||||
-rw-r--r-- | sos/plugins/subscription_manager.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sos/plugins/cs.py b/sos/plugins/cs.py index 76412a07..5f53593a 100644 --- a/sos/plugins/cs.py +++ b/sos/plugins/cs.py @@ -25,7 +25,7 @@ class CertificateSystem(Plugin, RedHatPlugin): """Certificate System and Dogtag """ - plugin_name = 'certificatesystem' + plugin_name = 'cs' profiles = ('identity', 'security') packages = ( diff --git a/sos/plugins/ds.py b/sos/plugins/ds.py index 655c44ee..8a2babc6 100644 --- a/sos/plugins/ds.py +++ b/sos/plugins/ds.py @@ -23,7 +23,7 @@ class DirectoryServer(Plugin, RedHatPlugin): """Directory Server """ - plugin_name = 'directoryserver' + plugin_name = 'ds' profiles = ('identity',) files = ('/etc/dirsrv', '/opt/redhat-ds') diff --git a/sos/plugins/hts.py b/sos/plugins/hts.py index 1573c95d..a0102851 100644 --- a/sos/plugins/hts.py +++ b/sos/plugins/hts.py @@ -19,7 +19,7 @@ class HardwareTestSuite(Plugin, RedHatPlugin): """Red Hat Hardware Test Suite """ - plugin_name = 'hardwaretestsuite' + plugin_name = 'hts' profiles = ('debug',) def setup(self): diff --git a/sos/plugins/subscription_manager.py b/sos/plugins/subscription_manager.py index 8ba65d83..8bd0c359 100644 --- a/sos/plugins/subscription_manager.py +++ b/sos/plugins/subscription_manager.py @@ -19,7 +19,7 @@ class SubscriptionManager(Plugin, RedHatPlugin): """subscription-manager information """ - plugin_name = 'subscription-manager' + plugin_name = 'subscription_manager' profiles = ('system', 'packagemanager', 'sysmgmt') files = ('/etc/rhsm/rhsm.conf',) |