client/rhel/rhn-client-tools/src/up2date_client/hardware.py | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 6391fe2b663ec7cbfdb2cedaf898483df170ee64
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Thu Jan 21 10:03:11 2010 +0100
557370 - put dmidecode import warnings into log
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
b/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
index 3d11bb3..f11b075 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
@@ -93,7 +93,13 @@ PCI_CLASS_SERIAL_USB = 3
PCI_CLASS_SERIAL_FIBER = 4
PCI_CLASS_SERIAL_SMBUS = 5
+dmi_warnings = None
+if hasattr(dmidecode, 'get_warnings'):
+ dmi_warnings = dmidecode.get_warnings()
+if dmi_warnings:
+ log = up2dateLog.initLog()
+ log.log_debug("Warnings collected during dmidecode import: %s" %
dmi_warnings)
# Some systems don't have the _locale module installed
try:
Show replies by date