summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ceph-volume/ceph_volume/devices/lvm/zap.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ceph-volume/ceph_volume/devices/lvm/zap.py b/src/ceph-volume/ceph_volume/devices/lvm/zap.py
index c1bef82c109..2b6925f5b27 100644
--- a/src/ceph-volume/ceph_volume/devices/lvm/zap.py
+++ b/src/ceph-volume/ceph_volume/devices/lvm/zap.py
@@ -191,8 +191,7 @@ class Zap(object):
Device examples: vg-name/lv-name, /dev/vg-name/lv-name
Requirements: Must be a logical volume (LV)
"""
- lv = api.get_single_lv(filters={'lv_name': device.lv_name, 'vg_name':
- device.vg_name})
+ lv: api.Volume = device.lv_api
self.unmount_lv(lv)
zap_device(device.path)