From 91c01e88ecc8f94f78b30463f13a51affe405d31 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 28 Nov 2018 07:51:51 -0500 Subject: [PATCH] ceph-volume util.device set vgs to Device object if available Signed-off-by: Alfredo Deza --- src/ceph-volume/ceph_volume/util/device.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ceph-volume/ceph_volume/util/device.py b/src/ceph-volume/ceph_volume/util/device.py index 3137b25365405..597bc1e996383 100644 --- a/src/ceph-volume/ceph_volume/util/device.py +++ b/src/ceph-volume/ceph_volume/util/device.py @@ -212,6 +212,7 @@ class Device(object): pvs.filter(pv_name=path) has_vgs = [pv.vg_name for pv in pvs if pv.vg_name] if has_vgs: + self.vgs = list(set(has_vgs)) # a pv can only be in one vg, so this should be safe self.vg_name = has_vgs[0] self._is_lvm_member = True -- 2.39.5