summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ceph-volume/ceph_volume/util/device.py2
1 files changed, 1 insertions, 1 deletions
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