[PATCH master] Network spoke: use chr() instead of str() to convert dbus.Byte (#849395)
Radek Vykydal
rvykydal at redhat.com
Tue Aug 21 10:23:57 UTC 2012
---
pyanaconda/ui/gui/spokes/network.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index 9142ad0..d254bf8 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -636,7 +636,7 @@ class NetworkControlBox():
config = dbus.SystemBus().get_object(NM_SERVICE, ipv6cfg.get_path())
addr, prefix, gw = getNMObjProperty(config, ".IP6Config",
"Addresses")[0]
- ipv6_addr = socket.inet_ntop(socket.AF_INET6, "".join(str(byte) for byte in addr))
+ ipv6_addr = socket.inet_ntop(socket.AF_INET6, "".join(chr(byte) for byte in addr))
self._set_device_info_value(dt, "ipv6", ipv6_addr)
if ipv4cfg and ipv6_addr:
--
1.7.4
More information about the anaconda-patches
mailing list