[PATCH 3/3] Only show unused devices that haven't been removed/deleted.

David Lehman dlehman at redhat.com
Mon Aug 13 17:07:37 UTC 2012


---
 pyanaconda/ui/gui/spokes/custom.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 7403561..44af618 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -377,7 +377,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         # We can only have one page expanded at a time.
         did_expand = False
 
-        unused = [d for d in self.unusedDevices if d.isleaf]
+        unused = [d for d in self.unusedDevices if d.isleaf and d in self._devices]
         new_devices = [d for d in self._devices if not d.exists]
 
         log.debug("ui: unused=%s" % [d.name for d in unused])
-- 
1.7.7.6



More information about the anaconda-patches mailing list