From: Dan Mick Date: Tue, 17 Apr 2018 02:13:18 +0000 (-0700) Subject: Remove unused and wrongly-described _lsblk_type X-Git-Tag: v12.2.5~1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F21565%2Fhead;p=ceph.git Remove unused and wrongly-described _lsblk_type Signed-off-by: Dan Mick (cherry picked from commit a97419f5d2b23131242a3602f2fa5f91ac7bc74d) --- diff --git a/src/ceph-volume/ceph_volume/util/disk.py b/src/ceph-volume/ceph_volume/util/disk.py index c3a79154005..43472334025 100644 --- a/src/ceph-volume/ceph_volume/util/disk.py +++ b/src/ceph-volume/ceph_volume/util/disk.py @@ -179,18 +179,6 @@ def lsblk(device, columns=None, abspath=False): return _lsblk_parser(' '.join(out)) -def _lsblk_type(device): - """ - Helper function that will use the ``TYPE`` label output of ``lsblk`` to determine - if a device is a partition or disk. - It does not process the output to return a boolean, but it does process it to return the - """ - out, err, rc = process.call( - ['blkid', '-s', 'PARTUUID', '-o', 'value', device] - ) - return ' '.join(out).strip() - - def is_device(dev): """ Boolean to determine if a given device is a block device (**not**