diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2020-03-06 12:04:05 -0500 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-03-18 09:38:42 -0400 |
commit | c9820fe9a69fa3808ab5591c0c0cd737ee4de9a7 (patch) | |
tree | ad90797eb5bb8be2cd3b36461997a63884f6a4a4 | |
parent | 1b70c61d882036e72449e0fca8dd11cb7eb72bcb (diff) | |
download | sos-c9820fe9a69fa3808ab5591c0c0cd737ee4de9a7.tar.gz |
[iprconfig] Remove check_enablement() override
Replaces the check_enablement() override with the standard package
check, and the new arch check functionality.
Related: #1975
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/plugins/iprconfig.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sos/plugins/iprconfig.py b/sos/plugins/iprconfig.py index 362b1066..6bc10485 100644 --- a/sos/plugins/iprconfig.py +++ b/sos/plugins/iprconfig.py @@ -10,7 +10,6 @@ import re from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin -from sos.utilities import is_executable class IprConfig(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): @@ -18,12 +17,11 @@ class IprConfig(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): """ plugin_name = 'iprconfig' - - def check_enabled(self): - arch = self.policy.get_arch() - return "ppc64" in arch and is_executable("iprconfig") + packages = ('iprutils',) + architectures = ('ppc64.*',) def setup(self): + self.add_cmd_output([ "iprconfig -c show-config", "iprconfig -c show-alt-config", |