From 2a216047589a34b49a871b851a4925d0cddcaae7 Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Mon, 11 Feb 2008 09:03:21 +0100 Subject: Use the correct variables to get the ipv6 info. (#432035) --- textw/network_text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/textw/network_text.py b/textw/network_text.py index 20db63a2a..f67be0c45 100644 --- a/textw/network_text.py +++ b/textw/network_text.py @@ -484,10 +484,10 @@ class NetworkDeviceWindow: continue # set the manual IPv6 address/prefix - if ipv6prefix is not None: - addr = "%s/%s" % (ipv6addr, ipv6prefix,) + if prefix is not '': + addr = "%s/%s" % (ip, prefix,) else: - addr = "%s" % (ipv6addr,) + addr = "%s" % (ip,) dev.set(('ipv6addr', addr)) -- cgit