We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab9cb60 + c0e05bf commit 8981bfcCopy full SHA for 8981bfc
src/ceph-volume/ceph_volume/devices/lvm/zap.py
@@ -191,8 +191,7 @@ def zap_lv(self, device):
191
Device examples: vg-name/lv-name, /dev/vg-name/lv-name
192
Requirements: Must be a logical volume (LV)
193
"""
194
- lv = api.get_single_lv(filters={'lv_name': device.lv_name, 'vg_name':
195
- device.vg_name})
+ lv: api.Volume = device.lv_api
196
self.unmount_lv(lv)
197
198
zap_device(device.path)
0 commit comments