[PATCH 3/4] Check self.partedPartition not being None before using it (#495077)

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

 



---
 storage/devices.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 0d39d12..e981e7a 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1222,7 +1222,7 @@ class PartitionDevice(StorageDevice):
     def _getSize(self):
         """ Get the device's size. """
         size = self._size
-        if len(self.parents) == 1:
+        if self.partedPartition:
             # this defaults to MB
             size = self.partedPartition.getSize()
         return size
-- 
1.6.2

_______________________________________________
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