From a97419f5d2b23131242a3602f2fa5f91ac7bc74d Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Mon, 16 Apr 2018 19:13:18 -0700 Subject: [PATCH] Remove unused and wrongly-described _lsblk_type Signed-off-by: Dan Mick --- src/ceph-volume/ceph_volume/util/disk.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/ceph-volume/ceph_volume/util/disk.py b/src/ceph-volume/ceph_volume/util/disk.py index c3a791540051d..434723340258d 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** -- 2.39.5