summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Abrioux <gabrioux@ibm.com>2024-10-16 09:35:49 +0200
committerGitHub <noreply@github.com>2024-10-16 09:35:49 +0200
commit8981bfcf439323fc8abd2bb800eb058d2d51e5ac (patch)
treec6109bf43fbdf39102bd8bcdb4690138bce6cbac
parentMerge pull request #60291 from rhcs-dashboard/NFS-subvol-list (diff)
parentceph-volume: drop unnecessary call to `get_single_lv()` (diff)
downloadceph-8981bfcf439323fc8abd2bb800eb058d2d51e5ac.tar.xz
ceph-8981bfcf439323fc8abd2bb800eb058d2d51e5ac.zip
Merge pull request #60055 from guits/tracker_68312
ceph-volume: drop unnecessary call to `get_single_lv()`
-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)