]> git.apps.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>
Fri, 27 Oct 2017 16:15:44 +0000 (11:15 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
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