Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Design Team (http://www.linux-archive.org/fedora-design-team/)
-   -   Fix handling of invalid bios disks (#819721) (http://www.linux-archive.org/fedora-design-team/675577-fix-handling-invalid-bios-disks-819721-a.html)

Jesse Keating 06-21-2012 09:20 PM

Fix handling of invalid bios disks (#819721)
 
---
kickstart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kickstart.py b/kickstart.py
index cfe12a0..a4d7fca 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -470,7 +470,7 @@ class AnacondaKSHandlers(KickstartHandlers):
if pd.onbiosdisk != "":
pd.disk = isys.doGetBiosDisk(pd.onbiosdisk)

- if pd.disk == "":
+ if not pd.disk:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specified BIOS disk %s cannot be determined" % pd.onbiosdisk)

if pd.mountpoint == "swap":
--
1.7.10.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

Jesse Keating 06-21-2012 09:21 PM

Fix handling of invalid bios disks (#819721)
 
---
pyanaconda/kickstart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 5888e4f..6692577 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -840,7 +840,7 @@ class PartitionData(commands.partition.F17_PartData):
self.disk = disk
break

- if self.disk == "":
+ if not self.disk:
raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specified BIOS disk %s cannot be determined" % self.onbiosdisk)

if self.mountpoint == "swap":
--
1.7.10.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 09:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.