[sos-devel] [RFC PATCH] [iprconfig] Enable iprconfig to run on ppc64le
Kamalesh Babulal
kamalesh at linux.vnet.ibm.com
Thu Jul 2 06:30:14 UTC 2015
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 at linux.vnet.ibm.com>
---
sos/plugins/iprconfig.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sos/plugins/iprconfig.py b/sos/plugins/iprconfig.py
index b77c192..687d8d5 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([
--
2.1.2
More information about the sos-devel
mailing list