> @@ -599,7 +600,10 @@ class PartitionData(commands.partition.F12_PartData): > storage.doAutoPart = False > > if self.onbiosdisk != "": > - self.disk = isys.doGetBiosDisk(self.onbiosdisk) > + for disk in storage.edd_dict: > + if str(storage.edd_dict[disk]) == self.onbiosdisk: > + self.disk = disk > + break > > if self.disk == "": > raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specified BIOS disk %s cannot be determined" % self.onbiosdisk) A more pythonish way of writing this would be: for (disk, biosdisk) in storage.edd_dict.iteritems(): if str(biosdisk) == self.onbiosdisk: self.disk = disk break - Chris _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list