aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/hardware.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py
index a196d366..b6418e98 100644
--- a/sos/plugins/hardware.py
+++ b/sos/plugins/hardware.py
@@ -61,7 +61,10 @@ class RedHatHardware(hardware, RedHatPlugin):
def setup(self):
super(RedHatHardware, self).setup()
- self.collectExtOutput(glob("/usr/share/rhn/up2date*client/hardware.py")[0]) # RHBZ#572353
+ try:
+ self.collectExtOutput(glob("/usr/share/rhn/up2date*client/hardware.py"))
+ except NameError:
+ pass
class DebianHardware(hardware, DebianPlugin, UbuntuPlugin):