client/rhel/rhn-client-tools/src/up2date_client/hardware.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 99de3f38a6ad333f5bdc9051df493ba7ae925010
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Thu Jan 21 12:54:34 2010 +0100
557059 - convert dbus.string to unicode
addressing:
Traceback (most recent call last):
File "/usr/sbin/rhn_register", line 83, in <module>
app.run()
File "/usr/share/rhn/up2date_client/rhncli.py", line 66, in run
sys.exit(self.main() or 0)
File "/usr/sbin/rhn_register", line 65, in main
ui.main()
File "/usr/share/rhn/up2date_client/tui.py", line 1722, in main
tui.run()
File "/usr/share/rhn/up2date_client/tui.py", line 1609, in run
if self._show_subscription_window() == False:
File "/usr/share/rhn/up2date_client/tui.py", line 1544, in
_show_subscription_window
self._activate_hardware()
File "/usr/share/rhn/up2date_client/tui.py", line 1523, in
_activate_hardware
hardwareInfo, self.other[org_id])
File "/usr/share/rhn/up2date_client/rhnreg.py", line 799, in
activateHardwareInfo
hardwareInfo, other)
File "/usr/share/rhn/up2date_client/rhnserver.py", line 50, in __call__
return rpcServer.doCall(method, *args, **kwargs)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 200, in doCall
ret = method(*args, **kwargs)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 39, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 318, in
_request
request = self._req_body(params, methodname)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 222, in
_req_body
return xmlrpclib.dumps(params, methodname, encoding=self._encoding)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1132, in dumps
data = m.dumps(params)
File "/usr/lib64/python2.6/xmlrpclib.py", line 677, in dumps
dump(v, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump
f(self, value, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 778, in dump_struct
raise TypeError, "dictionary key must be string"
<type exceptions.TypeError>: dictionary key must be string
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 f11b075..579d80e 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/hardware.py
@@ -931,7 +931,7 @@ def get_hal_system_and_smbios():
for key in props:
if key.startswith('system') or key.startswith('smbios'):
- system_and_smbios[key] = props[key]
+ system_and_smbios[unicode(key)] = unicode(props[key])
return system_and_smbios