[PATCH rhel5-branch] Fix handling of invalid bios disks (#819721)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux