Skip to content

Commit

Permalink
Merge pull request ceph#60055 from guits/tracker_68312
Browse files Browse the repository at this point in the history
ceph-volume: drop unnecessary call to `get_single_lv()`
  • Loading branch information
guits authored Oct 16, 2024
2 parents ab9cb60 + c0e05bf commit 8981bfc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ceph-volume/ceph_volume/devices/lvm/zap.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ def zap_lv(self, device):
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)
Expand Down

0 comments on commit 8981bfc

Please sign in to comment.