diff options
-rw-r--r-- | sos/plugins/hardware.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py index 2aabcce5..c677edce 100644 --- a/sos/plugins/hardware.py +++ b/sos/plugins/hardware.py @@ -13,6 +13,7 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. import sos.plugintools +from glob import glob class hardware(sos.plugintools.PluginBase): """hardware related information @@ -36,7 +37,7 @@ class hardware(sos.plugintools.PluginBase): "/proc/s390dbf/tape", "/sys/bus/scsi", "/sys/state"]) - self.collectExtOutput("/usr/share/rhn/up2dateclient/hardware.py") + self.collectExtOutput(glob("/usr/share/rhn/up2date*client/hardware.py")[0]) # RHBZ#572353 self.collectExtOutput("""/bin/echo -e "lspci:\n" ; /sbin/lspci ; /bin/echo -e "\nlspci -nvv:\n" ; /sbin/lspci -nvv ; /bin/echo -e "\nlspci -tv:\n" ; /sbin/lspci -tv""", suggest_filename = "lspci", root_symlink = "lspci") self.collectExtOutput("/usr/sbin/dmidecode", root_symlink = "dmidecode") |