summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-06-08 19:12:07 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-06-09 09:52:11 -1000
commit2e8dfb72c0c296f24f99512e8fb00c377417a60a (patch)
treed0a95bc9a612ce8e17cbfb1524aff10d20b9d7a7 /iw
parent0564d6456a098f2254cb4e32da0332e5ebd05b00 (diff)
downloadanaconda-2e8dfb72c0c296f24f99512e8fb00c377417a60a.tar.gz
anaconda-2e8dfb72c0c296f24f99512e8fb00c377417a60a.tar.xz
anaconda-2e8dfb72c0c296f24f99512e8fb00c377417a60a.zip
Show MAC address of network device in combo box (#504216)
We adding a remote repo while performing a CD or DVD install, you're presented with netconfig_dialog. The combo box listing network devices used to show 'device_name - description'. Change this to 'device_name - mac_address' to match our other interface listings in anaconda (plus, the description available to us now is sort of useless).
Diffstat (limited to 'iw')
-rw-r--r--iw/netconfig_dialog.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/iw/netconfig_dialog.py b/iw/netconfig_dialog.py
index 3941d3a99..52894de56 100644
--- a/iw/netconfig_dialog.py
+++ b/iw/netconfig_dialog.py
@@ -144,10 +144,10 @@ class NetworkConfigurator:
for dev in devs:
i = store.append(None)
- desc = netdevs[dev].get("desc")
+ hwaddr = netdevs[dev].get("HWADDR")
- if desc:
- desc = "%s - %s" %(dev, desc)
+ if hwaddr:
+ desc = "%s - %s" %(dev, hwaddr,)
else:
desc = "%s" %(dev,)