]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Remove unused and wrongly-described _lsblk_type 21455/head
authorDan Mick <dan.mick@redhat.com>
Tue, 17 Apr 2018 02:13:18 +0000 (19:13 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 17 Apr 2018 02:13:58 +0000 (19:13 -0700)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/ceph-volume/ceph_volume/util/disk.py

index c3a791540051df82edddca92cf25ca3484f66bc5..434723340258d405b6a87eedf1925e4dba27165e 100644 (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**