diff options
author | Radek Vykydal <rvykydal@redhat.com> | 2009-03-10 13:59:50 +0100 |
---|---|---|
committer | Radek Vykydal <rvykydal@redhat.com> | 2009-03-10 13:59:50 +0100 |
commit | 02821c4cb57396c2eb4e74e7b463f5830878ee8c (patch) | |
tree | 3d00c3e53b11726e7623f991efa9c6e6bca942cb /kickstart.py | |
parent | 22c8b4a9144dc157b503eb26e3f542383c883546 (diff) | |
download | anaconda-02821c4cb57396c2eb4e74e7b463f5830878ee8c.tar.gz anaconda-02821c4cb57396c2eb4e74e7b463f5830878ee8c.tar.xz anaconda-02821c4cb57396c2eb4e74e7b463f5830878ee8c.zip |
We are searching a list, not a dict now
Related commit: 4503335c6f5d33bcb236da1757123dde73a842bc.
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kickstart.py b/kickstart.py index 9e95fdbde..9c106a32d 100644 --- a/kickstart.py +++ b/kickstart.py @@ -602,9 +602,9 @@ class Partition(commands.partition.F9_Partition): if pd.start != 0 and pd.disk == "": raise KickstartValueError, formatErrorMsg(self.lineno, msg="Partition command with start cylinder requires a drive specification") hds = map(lambda x: x.name, filter(lambda x: isys.mediaPresent(x.name), self.handler.id.storage.disks)) - if not hds.has_key(pd.disk) and hds.has_key('mapper/'+pd.disk): + if pd.disk not in hds and pd.disk in ('mapper/'+hd for hd in hds): pd.disk = 'mapper/' + pd.disk - if pd.disk != "" and pd.disk not in hds.keys(): + if pd.disk not in hds: raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specified nonexistent disk %s in partition command" % pd.disk) request = partRequests.PartitionSpec(filesystem, |