aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2021-10-21 16:10:52 +0200
committerJake Hunsaker <jhunsake@redhat.com>2021-10-26 14:35:08 -0400
commit63d75133e6a9b4a59c10fb876244cdfa7d06570b (patch)
tree209917e8970cfbd02c766df38918b144e55c5064
parent9659b79f08a83a0b6a02dd205bd232726e24c701 (diff)
downloadsos-63d75133e6a9b4a59c10fb876244cdfa7d06570b.tar.gz
[foreman] Collect 'scl enable tfm gem list' again
This was stopped to be collected in foreman plugin split. Related: #2730 Resolves: #2731 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/report/plugins/foreman.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sos/report/plugins/foreman.py b/sos/report/plugins/foreman.py
index 351794f4..314a651d 100644
--- a/sos/report/plugins/foreman.py
+++ b/sos/report/plugins/foreman.py
@@ -9,8 +9,8 @@
#
# See the LICENSE file in the source distribution for further information.
-from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin,
- UbuntuPlugin, PluginOpt)
+from sos.report.plugins import (Plugin, RedHatPlugin, SCLPlugin,
+ DebianPlugin, UbuntuPlugin, PluginOpt)
from pipes import quote
from re import match
from sos.utilities import is_executable
@@ -303,7 +303,7 @@ class Foreman(Plugin):
# attr so we can keep all log definitions centralized in the main class
-class RedHatForeman(Foreman, RedHatPlugin):
+class RedHatForeman(Foreman, SCLPlugin, RedHatPlugin):
apachepkg = 'httpd'
@@ -318,6 +318,8 @@ class RedHatForeman(Foreman, RedHatPlugin):
self.pumactl = "scl enable tfm '%s'" % self.pumactl
super(RedHatForeman, self).setup()
+ self.add_cmd_output_scl('tfm', 'gem list',
+ suggest_filename='scl enable tfm gem list')
class DebianForeman(Foreman, DebianPlugin, UbuntuPlugin):