Blame SOURCES/sos-bz1238726-iprconfig-enable-on-ppc64le.patch

c81b6a
From f2d9cc519ac549b9e68e1301b67f1e9b789e2fd3 Mon Sep 17 00:00:00 2001
c81b6a
From: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
c81b6a
Date: Fri, 3 Jul 2015 12:16:25 +0100
c81b6a
Subject: [PATCH] iprconfig collects information, only if the underlying
c81b6a
 platform is 'ppc64'. Modify check_enabled() to regex match on arch(), instead
c81b6a
 of exact match of string.
c81b6a
c81b6a
This enables iprconfig to collect information on ppc64*
c81b6a
platforms.
c81b6a
c81b6a
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
c81b6a
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
c81b6a
---
c81b6a
 sos/plugins/iprconfig.py | 2 +-
c81b6a
 1 file changed, 1 insertion(+), 1 deletion(-)
c81b6a
---
c81b6a
 sos/plugins/iprconfig.py | 2 +-
c81b6a
 1 file changed, 1 insertion(+), 1 deletion(-)
c81b6a
c81b6a
diff --git a/sos/plugins/iprconfig.py b/sos/plugins/iprconfig.py
c81b6a
index b77c192..687d8d5 100644
c81b6a
--- a/sos/plugins/iprconfig.py
c81b6a
+++ b/sos/plugins/iprconfig.py
c81b6a
@@ -28,7 +28,7 @@ class IprConfig(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
c81b6a
 
c81b6a
     def check_enabled(self):
c81b6a
         arch = self.policy().get_arch()
c81b6a
-        return arch == "ppc64" and is_executable("iprconfig")
c81b6a
+        return "ppc64" in arch and is_executable("iprconfig")
c81b6a
 
c81b6a
     def setup(self):
c81b6a
         self.add_cmd_output([
c81b6a
-- 
c81b6a
1.8.3.1
c81b6a