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: v12.2.8~5^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=79212c2e28396d736b6d45e09ec27ac14857d788;p=ceph.git ceph-volume: device.Device should ignore pvs with no vg_name Signed-off-by: Andrew Schoen (cherry picked from commit 9b4f9471ed258bc5a06ec48e1d2ebd56f02a68cd) --- diff --git a/src/ceph-volume/ceph_volume/util/device.py b/src/ceph-volume/ceph_volume/util/device.py index 2c85c56b897d..7dca60a49ae4 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