From 55ae4e2b65e93525e4f45d3bfd806c12ab36b697 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Nasiadka?= Date: Tue, 12 Jan 2021 15:21:51 +0100 Subject: [PATCH] ceph-volume: Fix usage of is_lv MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In commit e09d3cd1a5bcfb42972b6958fb7e6c42a645549d is_lv method was removed from api/lvm.py. This change fixes util/disk.py to not use this missing method. Fixes: https://tracker.ceph.com/issues/48784 Signed-off-by: Michał Nasiadka (cherry picked from commit 5050a88e7a85bb1aa6cd5473c9083a186e2264d5) --- src/ceph-volume/ceph_volume/util/disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-volume/ceph_volume/util/disk.py b/src/ceph-volume/ceph_volume/util/disk.py index 7325a25580ce9..2cf18cb524974 100644 --- a/src/ceph-volume/ceph_volume/util/disk.py +++ b/src/ceph-volume/ceph_volume/util/disk.py @@ -760,7 +760,7 @@ def get_devices(_sys_block_path='/sys/block'): # If the mapper device is a logical volume it gets excluded if is_mapper_device(diskname): - if lvm.is_lv(diskname): + if lvm.get_device_lvs(diskname): continue # all facts that have no defaults -- 2.47.3