diff options
author | Guillaume Abrioux <gabrioux@ibm.com> | 2024-10-16 09:35:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 09:35:49 +0200 |
commit | 8981bfcf439323fc8abd2bb800eb058d2d51e5ac (patch) | |
tree | c6109bf43fbdf39102bd8bcdb4690138bce6cbac | |
parent | Merge pull request #60291 from rhcs-dashboard/NFS-subvol-list (diff) | |
parent | ceph-volume: drop unnecessary call to `get_single_lv()` (diff) | |
download | ceph-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.py | 3 |
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) |