1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 23:02:17 +00:00

Remove unused and wrongly-described _lsblk_type

Signed-off-by: Dan Mick <dan.mick@redhat.com>
This commit is contained in:
Dan Mick 2018-04-16 19:13:18 -07:00
parent 9e9a07c9ae
commit a97419f5d2

View File

@ -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**