summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-02-10 23:14:12 +0000
committerJeremy Katz <katzj@redhat.com>2004-02-10 23:14:12 +0000
commit12e6ebb983a353aee231c78bd72ed7e745a5ff79 (patch)
treeaae238a1ddea2315990fb1959d86131475b90dac /isys/isys.py
parent7682a2fb1e3454a86ff9e5bc98b04ab7d0b1cf44 (diff)
downloadanaconda-12e6ebb983a353aee231c78bd72ed7e745a5ff79.tar.gz
anaconda-12e6ebb983a353aee231c78bd72ed7e745a5ff79.tar.xz
anaconda-12e6ebb983a353aee231c78bd72ed7e745a5ff79.zip
drives with no device make no sense. this shows up with usb-storage stuff
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 9cdd587d2..f8d591131 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -259,6 +259,8 @@ def driveDict(klassArg):
devs = kudzu.probe(kudzu.CLASS_HD | kudzu.CLASS_CDROM | kudzu.CLASS_FLOPPY,
kudzu.BUS_UNSPEC, kudzu.PROBE_SAFE)
for dev in devs:
+ if dev.device is None: # none devices make no sense
+ continue
if dev.deviceclass == classMap[klassArg]:
ret[dev.device] = dev.desc