def list_block_devices(disks=True):
    bdevs = []
    # NOTE(agordeev): blockdev from util-linux contains a bug
    # which's causing 'blockdev --report' to fail on reporting
    # nvme devices.
    # The actual fix is included in util-linux-2.24.1:
    #   - don't use HDIO_GETGEO  [Phillip Susi]
    # Since the bug only affects '--report' it is safe to use
    # 'blockdevreport'.
    # bareon has to be switched to use udev database in order to
    # find all block devices recognized by kernel.
    devs = get_block_devices_from_udev_db()
    for device in devs:
        bdev = get_device_info(device, disks)
        if bdev:
            bdevs.append(bdev)

    return bdevs
If a version which is not a pre-release is passed to
dataset/ETHPy150Open openstack/bareon/bareon/utils/hardware.py/list_block_devices--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/test/test_version.py/TargetReleaseTests.test_not_pre_release