aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2020-03-06 12:53:08 -0500
committerJake Hunsaker <jhunsake@redhat.com>2020-03-18 09:38:42 -0400
commit566b86905957e5806c2bbab4215774bae80a0cf0 (patch)
tree4881f254c81b6b13102fcfc2931ea577f3058c44
parentc9820fe9a69fa3808ab5591c0c0cd737ee4de9a7 (diff)
downloadsos-566b86905957e5806c2bbab4215774bae80a0cf0.tar.gz
[powerpc] Remove check_enablement() override
Removes the check_enablement() override for this plugin and replaces it with the new architecture enablement check. Closes: #1975 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/plugins/powerpc.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py
index e522b991..68d95c6f 100644
--- a/sos/plugins/powerpc.py
+++ b/sos/plugins/powerpc.py
@@ -19,9 +19,7 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
plugin_name = 'powerpc'
profiles = ('system', 'hardware')
-
- def check_enabled(self):
- return "ppc64" in self.policy.get_arch()
+ architectures = ('ppc.*',)
def setup(self):
try: