GRUB class is inherited from the Bootloader class which returns bool
value from its has_windows method.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/bootloader.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 10415e1..259dd34 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1317,7 +1317,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