diff options
author | Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> | 2015-07-03 12:16:25 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-07-03 12:16:25 +0100 |
commit | f2d9cc519ac549b9e68e1301b67f1e9b789e2fd3 (patch) | |
tree | 81bc274f29b378c353aa80f8cf5b93724e39d46b | |
parent | 07a688021410d32fc5f5ed4d9fb2a5495321cfa0 (diff) | |
download | sos-f2d9cc519ac549b9e68e1301b67f1e9b789e2fd3.tar.gz |
iprconfig collects information, only if the underlying
platform is 'ppc64'. Modify check_enabled() to regex match
on arch(), instead of exact match of string.
This enables iprconfig to collect information on ppc64*
platforms.
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
---
sos/plugins/iprconfig.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-rw-r--r-- | sos/plugins/iprconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/iprconfig.py b/sos/plugins/iprconfig.py index b77c1928..687d8d51 100644 --- a/sos/plugins/iprconfig.py +++ b/sos/plugins/iprconfig.py @@ -28,7 +28,7 @@ class IprConfig(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): def check_enabled(self): arch = self.policy().get_arch() - return arch == "ppc64" and is_executable("iprconfig") + return "ppc64" in arch and is_executable("iprconfig") def setup(self): self.add_cmd_output([ |