summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-13 13:34:13 -0400
committerChris Lumens <clumens@redhat.com>2009-03-13 14:26:57 -0400
commit12c4fb21429e61fc0dedbd8e3fd2a2f0d3e3eeac (patch)
tree49266004e7465b89547982458ed990675cb95cba /kickstart.py
parent4f7ad077b523a0dbb1ace6339720f875dec6574f (diff)
downloadanaconda-12c4fb21429e61fc0dedbd8e3fd2a2f0d3e3eeac.tar.gz
anaconda-12c4fb21429e61fc0dedbd8e3fd2a2f0d3e3eeac.tar.xz
anaconda-12c4fb21429e61fc0dedbd8e3fd2a2f0d3e3eeac.zip
Add mediaPresent and eject to the OpticalDevice class.
These no longer belong in isys.py as putting them in the classes is much more correct. I also put a mediaPresent method on Device in general. This will come in handy when we start dealing with USB CF readers and similar devices that can be present without having media.
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index 1000f8e0b..f24d6178a 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -238,7 +238,7 @@ class ClearPart(commands.clearpart.FC3_ClearPart):
if self.type is None:
self.type = CLEARPART_TYPE_NONE
- hds = map(lambda x: x.name, filter(lambda x: isys.mediaPresent(x.name), self.handler.id.storage.disks))
+ hds = map(lambda x: x.name, filter(lambda dev: dev.mediaPresent, self.handler.id.storage.disks))
for disk in self.drives:
if disk not in hds:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specified nonexistent disk %s in clearpart command" % disk)