From: Dan Mick Date: Tue, 17 Apr 2018 02:13:18 +0000 (-0700) Subject: Remove unused and wrongly-described _lsblk_type X-Git-Tag: v13.1.0~168^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a97419f5d2b23131242a3602f2fa5f91ac7bc74d;p=ceph-ci.git Remove unused and wrongly-described _lsblk_type Signed-off-by: Dan Mick --- 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**