[PATCH] Include hidden disks in the storage spoke's list of devices (#875475).

Chris Lumens clumens at redhat.com
Wed Nov 14 20:50:39 UTC 2012


Otherwise, previously unselected disks on the storage overview will never
be allowed to be selected.
---
 pyanaconda/ui/gui/spokes/storage.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index e9ce0c5..c5b7fcf 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -92,10 +92,11 @@ class FakeDisk(object):
 
 def getDisks(devicetree, fake=False):
     if not fake:
-        disks = [d for d in devicetree.devices if d.isDisk and
-                                                  not d.format.hidden and
-                                                  not (d.protected and
-                                                       d.removable)]
+        devices = devicetree.devices + devicetree._hidden
+        disks = [d for d in devices if d.isDisk and
+                                       not d.format.hidden and
+                                       not (d.protected and
+                                            d.removable)]
     else:
         disks = []
         disks.append(FakeDisk("sda", size=300000, free=10000, serial="00001",
-- 
1.7.11.2



More information about the anaconda-patches mailing list