diff options
-rw-r--r-- | sos/plugins/hardware.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py index 15ab6141..27c6ce0d 100644 --- a/sos/plugins/hardware.py +++ b/sos/plugins/hardware.py @@ -75,10 +75,10 @@ class RedHatHardware(hardware, RedHatPlugin): def setup(self): super(RedHatHardware, self).setup() - try: - self.collectExtOutput(glob("/usr/share/rhn/up2date*client/hardware.py")) - except NameError: - pass + hwpaths = glob("/usr/share/rhn/up2date*client/hardware.py") + if (len(hwpaths) == 0): + return + self.collectExtOutput(hwpaths[0]) class DebianHardware(hardware, DebianPlugin, UbuntuPlugin): |