[PATCH 6/6] Fix test for changed disk set for partitions. (#873994)

David Lehman dlehman at redhat.com
Wed Nov 7 21:57:39 UTC 2012


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

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 7caba9e..a3242df 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1041,7 +1041,10 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
                               device_type in (DEVICE_TYPE_MD,
                                               DEVICE_TYPE_BTRFS) and
                               old_raid_level != raid_level)
-        changed_disk_set = (set(device.disks) != set(self._device_disks))
+        old_disk_set = device.disks
+        if hasattr(device, "req_disks") and not device.exists:
+            old_disk_set = device.req_disks
+        changed_disk_set = (set(old_disk_set) != set(self._device_disks))
 
         if changed_device_type or changed_raid_level:
             if changed_device_type:
-- 
1.7.7.6



More information about the anaconda-patches mailing list