[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 4/4] 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).
---
 iw/netconfig_dialog.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/iw/netconfig_dialog.py b/iw/netconfig_dialog.py
index 3941d3a..52894de 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,)
 
-- 
1.6.2.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]