]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-volume: device.Device should ignore pvs with no vg_name
authorAndrew Schoen <aschoen@redhat.com>
Tue, 21 Aug 2018 17:13:08 +0000 (13:13 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 24 Aug 2018 14:18:04 +0000 (10:18 -0400)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/util/device.py

index 2c85c56b897d6c4f20f497723677c57533499980..7dca60a49ae4f23ab707cf80ebd2ac7eb5400378 100644 (file)
@@ -55,7 +55,7 @@ class Device(object):
             if not pvs:
                 self._is_lvm_member = False
                 return self._is_lvm_member
-            has_vgs = [pv.vg_name for pv in pvs]
+            has_vgs = [pv.vg_name for pv in pvs if pv.vg_name]
             if has_vgs:
                 self._is_lvm_member = True
                 self.pvs_api = pvs