]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: the metadata field for the lv path is lv_path not path
authorAndrew Schoen <aschoen@redhat.com>
Thu, 19 Oct 2017 21:29:39 +0000 (16:29 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 30 Oct 2017 15:12:17 +0000 (10:12 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit e3a9113e7025f1e3a3130ec1e2d565f37bf3d2dc)

src/ceph-volume/ceph_volume/devices/lvm/zap.py

index 79db8c55331826f52c18b800e841da3589f30ce8..e5d1ebcc6e7a617082ceea1e4056a3ac686c3861 100644 (file)
@@ -51,7 +51,7 @@ class Zap(object):
         lv = api.get_lv_from_argument(device)
         if lv:
             # we are zapping a logical volume
-            path = lv.path
+            path = lv.lv_path
         else:
             # we are zapping a partition
             #TODO: ensure device is a partition