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

Vratislav Podzimek vpodzime at redhat.com
Thu Jun 6 12:05:11 UTC 2013


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 440dd0c..cebb375 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1311,7 +1311,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.7



More information about the anaconda-patches mailing list