

def get_device_info(device, disks=True):
    try:
        uspec = udevreport(device)
        espec = extrareport(device)
        bspec = blockdevreport(device)
    except (KeyError, ValueError, TypeError, errors.ProcessExecutionError) as e:
        LOG.warning('Skipping block device %s. Failed to get all information about the device: %s', device, e)
        return
    if (disks and (not is_disk(device, bspec=bspec, uspec=uspec))):
        return
    bdev = {
        'device': device,
        'uspec': uspec,
        'bspec': bspec,
        'espec': disks,
    }
    return bdev

dataset/ETHPy150Open openstack/bareon/bareon/utils/hardware.py get_device_info/VarMisuse@118/186 `espec`->`disks`