[anaconda:rhel7/master 2/2] Make resizable and exists based on device, not use_dev (#1076055)

mulhern amulhern at redhat.com
Tue Sep 16 17:26:23 UTC 2014


use_dev is different from device only when devices is a LUKSDevice,
but in that case, with changes to LUKSDevice in associated blivet patch set,
device.resizable and device.exists should still do the right thing.

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 f4484ec..aeab608 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1301,7 +1301,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
             size = old_size
         else:
             size = size_from_entry(self._sizeEntry)
-        changed_size = ((use_dev.resizable or not use_dev.exists) and
+        changed_size = ((device.resizable or not device.exists) and
                         not same_size)
         log.debug("old size: %s", old_size)
         log.debug("new size: %s", size)
-- 
1.9.3



More information about the anaconda-patches mailing list