Blame SOURCES/sos-bz1140427-powerpc-allow-powerpc-plugin-to-run-on-ppc64le.patch

e75bc7
From 988fee7e6d0c2c91cf1f2c9363d4e3cea7244163 Mon Sep 17 00:00:00 2001
e75bc7
From: "Bryn M. Reeves" <bmr@redhat.com>
e75bc7
Date: Thu, 2 Oct 2014 17:25:17 +0100
e75bc7
Subject: [PATCH] [powerpc] allow PowerPC plugin to run on ppc64le
e75bc7
e75bc7
The plugin currently tests whether policy().get_arch() is equal
e75bc7
to "ppc64". On little endian PowerPC machines this method returns
e75bc7
"ppc64le". Change the check_enabled() method to test whether the
e75bc7
returned string contains "ppc64".
e75bc7
e75bc7
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
e75bc7
---
e75bc7
 sos/plugins/powerpc.py | 2 +-
e75bc7
 1 file changed, 1 insertion(+), 1 deletion(-)
e75bc7
e75bc7
diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py
e75bc7
index 896d1d4..39b52f6 100644
e75bc7
--- a/sos/plugins/powerpc.py
e75bc7
+++ b/sos/plugins/powerpc.py
e75bc7
@@ -27,7 +27,7 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
e75bc7
     profiles = ('system', 'hardware')
e75bc7
 
e75bc7
     def check_enabled(self):
e75bc7
-        return (self.policy().get_arch() == "ppc64")
e75bc7
+        return "ppc64" in self.policy().get_arch()
e75bc7
 
e75bc7
     def setup(self):
e75bc7
         try:
e75bc7
-- 
e75bc7
1.9.3
e75bc7