diff options
author | Adam Stokes <hackr@cypherbook.com> | 2012-03-09 14:52:15 -0500 |
---|---|---|
committer | Adam Stokes <hackr@cypherbook.com> | 2012-03-09 15:51:56 -0500 |
commit | 12dad86f102007a441629d00255338c35afd7449 (patch) | |
tree | 8f246e139d2cb102ba791089444fae4879a22cca | |
parent | ee46604447296395e33b9f0f3bee158ed5f8f776 (diff) | |
download | sos-12dad86f102007a441629d00255338c35afd7449.tar.gz |
sos/plugins/hardware: Address an error of accessing the wrong
distro specific class due to an inheritance mis-hap.
Signed-off-by: Adam Stokes <hackr@cypherbook.com>
-rw-r--r-- | sos/plugins/hardware.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py index 7398656a..762732c3 100644 --- a/sos/plugins/hardware.py +++ b/sos/plugins/hardware.py @@ -15,7 +15,7 @@ from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin from glob import glob -class hardware(Plugin, DebianPlugin, UbuntuPlugin): +class hardware(Plugin): """hardware related information """ @@ -60,3 +60,11 @@ class RedHatHardware(hardware, RedHatPlugin): def setup(self): super(RedHatHardware, self).setup() self.collectExtOutput(glob("/usr/share/rhn/up2date*client/hardware.py")[0]) # RHBZ#572353 + + +class DebianHardware(hardware, DebianPlugin, UbuntuPlugin): + """hardware related information for Debian distribution + """ + + def setup(self): + super(DebianHardware, self).setup() |