[PATCH] Dump missing ifcfg ifles only for ethernet devices (#893892)

Radek Vykydal rvykydal at redhat.com
Tue Jan 15 13:09:39 UTC 2013


Don't crash on wwan devices, other types we might want to handle
here (bond, vlan) will be added when we support them.
---
 pyanaconda/network.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 2bf7832..343297f 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -465,7 +465,7 @@ def createMissingDefaultIfcfgs():
         device = get_NM_object(devpath)
         device_props_iface = dbus.Interface(device, isys.DBUS_PROPS_IFACE)
         devicetype = device_props_iface.Get(isys.NM_DEVICE_IFACE, "DeviceType")
-        if devicetype == isys.NM_DEVICE_TYPE_WIFI:
+        if devicetype != isys.NM_DEVICE_TYPE_ETHERNET:
             continue
         # if there is no ifcfg file for the device
         interface = str(device_props_iface.Get(isys.NM_DEVICE_IFACE, "Interface"))
-- 
1.7.11.7



More information about the anaconda-patches mailing list