[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 13/15] Fix StorageDevice.resizable to check self.format.type, not self.format.



self.format cannot be None.
---
 pyanaconda/storage/devices.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index 5bedfd4..ab0d4d6 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -590,8 +590,8 @@ class StorageDevice(Device):
     @property
     def resizable(self):
         """ Can this type of device be resized? """
-        return self._resizable and self.exists and \
-               ((self.format and self.format.resizable) or not self.format)
+        return (self._resizable and self.exists and
+                (self.format.resizable or not self.format.type))
 
     def notifyKernel(self):
         """ Send a 'change' uevent to the kernel for this device. """
-- 
1.7.2.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]