FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Design Team

 
 
LinkBack Thread Tools
 
Old 06-21-2012, 09:20 PM
Jesse Keating
 
Default 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
 
Old 06-21-2012, 09:21 PM
Jesse Keating
 
Default 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
 

Thread Tools




All times are GMT. The time now is 10:16 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org