diff options
author | Guillaume Abrioux <gabrioux@ibm.com> | 2023-12-12 17:32:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 17:32:09 +0100 |
commit | fb0f6b6c88401e74cbeb52b6eb3aa7bcc78a5c72 (patch) | |
tree | 67d69c20b6e41f088e1cea4cbd3868ec477805fb /src | |
parent | Merge pull request #54608 from dillona/main (diff) | |
parent | src/ceph-volume/ceph_volume/devices/lvm/listing.py : lvm list filters also on... (diff) | |
download | ceph-fb0f6b6c88401e74cbeb52b6eb3aa7bcc78a5c72.tar.xz ceph-fb0f6b6c88401e74cbeb52b6eb3aa7bcc78a5c72.zip |
Merge pull request #53841 from pilem/bug62320
src/ceph-volume/ceph_volume/devices/lvm/listing.py : lvm list filters with vg name
Diffstat (limited to 'src')
-rw-r--r-- | src/ceph-volume/ceph_volume/devices/lvm/listing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ceph-volume/ceph_volume/devices/lvm/listing.py b/src/ceph-volume/ceph_volume/devices/lvm/listing.py index c16afdaa767..8fb9d8ddcf8 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/listing.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/listing.py @@ -153,7 +153,9 @@ class List(object): elif arg[0] == '/': lv = api.get_lvs_from_path(arg) else: - lv = [api.get_single_lv(filters={'lv_name': arg.split('/')[1]})] + vg_name, lv_name = arg.split('/') + lv = [api.get_single_lv(filters={'lv_name': lv_name, + 'vg_name': vg_name})] report = self.create_report(lv) |