diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-11 16:11:01 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-12 09:42:45 -0400 |
commit | 85b93e8407359c49ba1364b29fe2a67a236c010d (patch) | |
tree | d1eac32520c72a007c69581ffb78b2bbb9e6b3f1 /storage/devicetree.py | |
parent | a8f0fa0603962ca3b4b67e1e37f7a497b2deb3e3 (diff) | |
download | anaconda-85b93e8407359c49ba1364b29fe2a67a236c010d.tar.gz anaconda-85b93e8407359c49ba1364b29fe2a67a236c010d.tar.xz anaconda-85b93e8407359c49ba1364b29fe2a67a236c010d.zip |
Make sure the device has a diskType before attempting to check what it is.
Diffstat (limited to 'storage/devicetree.py')
-rw-r--r-- | storage/devicetree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index 2a40fc423..109db1a0c 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -758,7 +758,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(): |