summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-02-13 09:56:20 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-02-13 11:30:38 -1000
commit164947aa366f810c70541bebafed17b76b07a100 (patch)
tree67c7b187ceabfe794516fc782c101e2e21875097 /textw
parent059c0ca2c34c123173041751b5c7337b0215242a (diff)
downloadanaconda-164947aa366f810c70541bebafed17b76b07a100.tar.gz
anaconda-164947aa366f810c70541bebafed17b76b07a100.tar.xz
anaconda-164947aa366f810c70541bebafed17b76b07a100.zip
Make sure interface description is defined (#432635)
Text mode manual installations will lack the variables tested to initialize the interface configuration dialog. We need to make desc be some sort of string, even an empty string, so this patch adds the default case of setting desc to nothing.
Diffstat (limited to 'textw')
-rw-r--r--textw/network_text.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index e34ace764..3fc0c4d09 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -593,6 +593,8 @@ class NetworkDeviceWindow:
desc = _("%s, %s") % (onboot, ipv4,)
elif ipv4 == '' and ipv6 != '':
desc = _("%s, %s") % (onboot, ipv6,)
+ else:
+ desc = ""
self.devListDescs[devname] = desc
# collect configuration data for each interface selected by the user