[anaconda:master 1/7] Check identity, not equality, for RaidLevel objects.

mulhern amulhern at redhat.com
Mon Oct 13 21:15:58 UTC 2014


They're all singleton objects.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 pyanaconda/ui/gui/spokes/custom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 6f6f66b..14bff39 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -985,7 +985,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         changed_raid_level = (old_device_type == device_type and
                               device_type in (DEVICE_TYPE_MD,
                                               DEVICE_TYPE_BTRFS) and
-                              old_raid_level != raid_level)
+                              old_raid_level is not raid_level)
         old_device_info["raid_level"] = old_raid_level
         new_device_info["raid_level"] = raid_level
 
-- 
1.9.3



More information about the anaconda-patches mailing list