[PATCH 1/3] Return bool value from the GRUB.has_windows method

Vratislav Podzimek vpodzime at redhat.com
Wed Sep 19 09:52:47 UTC 2012


GRUB class is inherited from the Bootloader class which returns bool
value from its has_windows method.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/bootloader.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index b0aff48..d87c20b 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1309,7 +1309,7 @@ class GRUB(BootLoader):
         ret = [d for d in devices if self.is_valid_stage2_device(d, linux=False, non_linux=True)]
         self.errors = errors
         self.warnings = warnings
-        return ret
+        return bool(ret)
 
 class GRUB2(GRUB):
     """ GRUBv2
-- 
1.7.11.4



More information about the anaconda-patches mailing list