[PATCH 9/9] Make sure the device has a diskType before attempting to check what it is.

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

 



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

diff --git a/storage/devicetree.py b/storage/devicetree.py
index e974717..45601a6 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -751,7 +751,7 @@ class DeviceTree(object):
         if isinstance(dep, PartitionDevice):
             # collect all of the logicals on the same disk
             for part in self.getDevicesByInstance(PartitionDevice):
-                if part.isLogical and part.disk == dep.disk:
+                if part.partType and part.isLogical and part.disk == dep.disk:
                     logicals.append(part)
 
         for device in self.devices.values():
-- 
1.6.1.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