summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-07-14 16:28:57 +0200
committerRadek Vykydal <rvykydal@redhat.com>2009-07-20 14:01:05 +0200
commitc066e28c572df081eea2ef23346c94f357b5545f (patch)
treebe1e50dc7eb9a7f636cf5a2ae48a7b9a8f257a3b /textw
parentcee4eef6a4ab0503d8dd3c650d7a2b819432d781 (diff)
downloadanaconda-c066e28c572df081eea2ef23346c94f357b5545f.tar.gz
anaconda-c066e28c572df081eea2ef23346c94f357b5545f.tar.xz
anaconda-c066e28c572df081eea2ef23346c94f357b5545f.zip
Show MAC address of network device in text mode too.
I came accross this by the way when working on something different. It adds what was done with commit 2e8dfb72c0c296f24f99512e8fb00c377417a60a (#504216) for GUI to text ui. Althoug BZ suggests that it was already present in text ui, looking into code doesn't (I have no rawhide image to test if it is actually true).
Diffstat (limited to 'textw')
-rw-r--r--textw/netconfig_text.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/textw/netconfig_text.py b/textw/netconfig_text.py
index 8475f0018..379beddc7 100644
--- a/textw/netconfig_text.py
+++ b/textw/netconfig_text.py
@@ -103,9 +103,10 @@ class NetworkConfiguratorText:
selected_interface = None
for dev in devs:
- desc = netdevs[dev].get("DESC")
- if desc:
- desc = "%s - %.50s" % (dev, desc)
+ hwaddr = netdevs[dev].get("HWADDR")
+
+ if hwaddr:
+ desc = "%s - %.50s" % (dev, hwaddr)
else:
desc = dev