]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: no need to set PVolume.vg_name explicitly
authorAndrew Schoen <aschoen@redhat.com>
Thu, 18 Jan 2018 20:34:22 +0000 (14:34 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 18 Jan 2018 20:34:22 +0000 (14:34 -0600)
This will be set automatically in __init__ by looping
through kw.items and creating properties on PVolume
with them.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/api/lvm.py

index 31f38eeca7644823d7440e1158740bfc9a2312ae..374834b32c17d95cf9bf4ad45d79a3e4b3fda28e 100644 (file)
@@ -737,7 +737,6 @@ 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):