client/rhel/rhn-client-tools/src/up2date_client/hardware.py | 14 +++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
New commits:
commit efe204ab54d995ef6edfe6afb43768506e787ad3
Author: Pradeep Kilambi <pkilambi(a)redhat.com>
Date: Thu Aug 20 13:47:37 2009 -0400
518336 - if hal or messagebus is not accessible log the error and proceed with rest of
the registration.
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 5d7cdba..4dff5c9 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
@@ -858,10 +858,14 @@ def read_dmi():
return dmidict
def get_hal_system_and_smbios():
- computer = get_hal_computer()
-
- props = computer.GetAllProperties()
-
+ try:
+ computer = get_hal_computer()
+ props = computer.GetAllProperties()
+ except:
+ log = up2dateLog.initLog()
+ msg = "Error reading system and smbios information: %s\n" %
(sys.exc_type)
+ log.log_debug(msg)
+ return
system_and_smbios = {}
for key in props:
@@ -871,8 +875,8 @@ def get_hal_system_and_smbios():
return system_and_smbios
def get_hal_smbios():
- computer = get_hal_computer()
try:
+ computer = get_hal_computer()
props = computer.GetAllProperties()
except:
log = up2dateLog.initLog()
Show replies by date