]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Remove unused and wrongly-described _lsblk_type 21565/head
authorDan Mick <dan.mick@redhat.com>
Tue, 17 Apr 2018 02:13:18 +0000 (19:13 -0700)
committerAlfredo Deza <alfredo@deza.pe>
Fri, 20 Apr 2018 15:31:42 +0000 (11:31 -0400)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit a97419f5d2b23131242a3602f2fa5f91ac7bc74d)

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