[PATCH master] Network spoke: use chr() instead of str() to convert dbus.Byte (#849395)

Vratislav Podzimek vpodzime at redhat.com
Tue Aug 21 10:36:53 UTC 2012


Ack.

On Tue, 2012-08-21 at 12:23 +0200, Radek Vykydal wrote:
> ---
>  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:

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list