summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-10 22:04:13 +0000
committerMatt Wilson <msw@redhat.com>2000-01-10 22:04:13 +0000
commite8a92b7f8b0f1d601c146add387bd3b0a944f46d (patch)
tree59ca93da15895a94a4ec556c90f7f29c3ba6460f /isys
parent66b6924825afa03ee6d41602548196cdf5498cc7 (diff)
downloadanaconda-e8a92b7f8b0f1d601c146add387bd3b0a944f46d.tar.gz
anaconda-e8a92b7f8b0f1d601c146add387bd3b0a944f46d.tar.xz
anaconda-e8a92b7f8b0f1d601c146add387bd3b0a944f46d.zip
cleaned up dict/list differences
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 5df744aa2..5cc066d6e 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -89,25 +89,27 @@ def probePciDevices():
return result
-def driveList(klassArg):
+def driveDict(klassArg):
p = _isys.ProbedList()
p.updateIde()
p.updateScsi()
dict = {}
for (klass, dev, descr) in p:
- if (klass == classArg):
+ if (klass == klassArg):
dict[dev] = descr
return dict
-def hardDriveList():
- return driveList("disk")
+def hardDriveDict():
+ return driveDict("disk")
-def floppyDriveList():
- return driveList("floppy")
+def floppyDriveDict():
+ return driveDict("floppy")
def cdromList():
- return driveList("cdrom")
+ list = driveDict("cdrom").keys()
+ list.sort()
+ return list
def moduleListByType(type):
return _isys.modulelist(type)