On Tue, 2013-01-15 at 14:09 +0100, Radek Vykydal wrote:
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"))
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic