From: Andrew Schoen Date: Tue, 21 Aug 2018 17:13:08 +0000 (-0400) Subject: ceph-volume: device.Device should ignore pvs with no vg_name X-Git-Tag: v14.0.1~499^2~17 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9b4f9471ed258bc5a06ec48e1d2ebd56f02a68cd;p=ceph-ci.git ceph-volume: device.Device should ignore pvs with no vg_name Signed-off-by: Andrew Schoen --- diff --git a/src/ceph-volume/ceph_volume/util/device.py b/src/ceph-volume/ceph_volume/util/device.py index 2c85c56b897..7dca60a49ae 100644 --- a/src/ceph-volume/ceph_volume/util/device.py +++ b/src/ceph-volume/ceph_volume/util/device.py @@ -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