From: Alfredo Deza Date: Wed, 28 Nov 2018 12:51:51 +0000 (-0500) Subject: ceph-volume util.device set vgs to Device object if available X-Git-Tag: v14.1.0~747^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91c01e88ecc8f94f78b30463f13a51affe405d31;p=ceph.git ceph-volume util.device set vgs to Device object if available Signed-off-by: Alfredo Deza --- 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