summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-10-06 09:53:49 -0400
committerChris Lumens <clumens@redhat.com>2008-10-06 09:53:49 -0400
commit9d694928b1145defb947ccc0a04339769fa2ed32 (patch)
tree8a3184c72a29466f7eeeeca8d237d81a35cb8c52 /network.py
parentf58b0d35bd794cb8c16d2ba23b7692d279266ff2 (diff)
downloadanaconda-9d694928b1145defb947ccc0a04339769fa2ed32.tar.gz
anaconda-9d694928b1145defb947ccc0a04339769fa2ed32.tar.xz
anaconda-9d694928b1145defb947ccc0a04339769fa2ed32.zip
Fix a traceback when there's no ksdevice given (#465638).
Diffstat (limited to 'network.py')
-rw-r--r--network.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/network.py b/network.py
index 6a9c6d0f6..c04ea00ce 100644
--- a/network.py
+++ b/network.py
@@ -352,6 +352,9 @@ class Network:
self.netdevices[dev].set(('HWADDR', device['net.address']))
self.netdevices[dev].set(('DESC', device['description']))
+ if not ksdevice:
+ continue
+
if ksdevice == 'link' and isys.getLinkStatus(dev):
self.ksdevice = dev
elif ksdevice == dev: