]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: expose vg_name in api.lvm.get_api_pvs
authorAndrew Schoen <aschoen@redhat.com>
Wed, 17 Jan 2018 18:58:50 +0000 (12:58 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 18 Jan 2018 17:12:30 +0000 (11:12 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/api/lvm.py

index df1ec48cd1ab2dfbd24bf21b885cda047569d222..b39a71d1d255b70bbb7f82f0625fd5ac991998fe 100644 (file)
@@ -122,7 +122,7 @@ def get_api_pvs():
           /dev/sdv;;07A4F654-4162-4600-8EB3-88D1E42F368D
 
     """
-    fields = 'pv_name,pv_tags,pv_uuid'
+    fields = 'pv_name,pv_tags,pv_uuid,vg_name'
 
     # note the use of `pvs -a` which will return every physical volume including
     # ones that have not been initialized as "pv" by LVM
@@ -707,6 +707,7 @@ class PVolume(object):
             setattr(self, k, v)
         self.pv_api = kw
         self.name = kw['pv_name']
+        self.vg_name = kw['vg_name']
         self.tags = parse_tags(kw['pv_tags'])
 
     def __str__(self):