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

[PATCH f14-branch master] Take into account hidden disks (#583906)



NOTE: I am unsure if there is any fallout from filtering hidden disks here.
NOTE: This is for a F14 Blocker

disks are used later after filtering for hidden, this will prevent
tracebacks when only hidden disks are present.
---
 pyanaconda/storage/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index c92b76d..48e1be4 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -116,7 +116,7 @@ def storageInitialize(anaconda):
     else:
         storage.reset()
 
-    if not storage.disks:
+    if not filter(lambda d: not d.format.hidden, storage.disks):
         rc = anaconda.intf.messageWindow(_("No disks found"),
                 _("No usable disks have been found."),
                 type="custom",
-- 
1.7.2.3


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