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

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

 



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

_______________________________________________
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