diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-10-02 17:25:17 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-10-02 17:25:17 +0100 |
commit | 988fee7e6d0c2c91cf1f2c9363d4e3cea7244163 (patch) | |
tree | ff2ca56101768e49731b80360d323df7d4b6049e | |
parent | e8428d458cfd65bdc34d69f32db0bf4f5aca7540 (diff) | |
download | sos-988fee7e6d0c2c91cf1f2c9363d4e3cea7244163.tar.gz |
[powerpc] allow PowerPC plugin to run on ppc64le
The plugin currently tests whether policy().get_arch() is equal
to "ppc64". On little endian PowerPC machines this method returns
"ppc64le". Change the check_enabled() method to test whether the
returned string contains "ppc64".
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/powerpc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py index 896d1d49..39b52f62 100644 --- a/sos/plugins/powerpc.py +++ b/sos/plugins/powerpc.py @@ -27,7 +27,7 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): profiles = ('system', 'hardware') def check_enabled(self): - return (self.policy().get_arch() == "ppc64") + return "ppc64" in self.policy().get_arch() def setup(self): try: |