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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux