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

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



Looks good.

On 03/11/2009 10:32 AM, Chris Lumens wrote:
---
  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():


--
David Cantrell <dcantrell redhat com>
Red Hat / Honolulu, HI


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