def get_config_drive_type():

    if CONF.config_drive_format == 'iso9660':
        config_drive_type = 'cdrom'
    elif CONF.config_drive_format == 'vfat':
        config_drive_type = 'disk'
    else:
        raise exception.ConfigDriveUnknownFormat(
            format=CONF.config_drive_format)

    return config_drive_type
Test related to #13085
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/blockinfo.py/get_config_drive_type--crossover with--dataset/ETHPy150Open lionheart/django-pyodbc/tests/django16/generic_relations_regress/tests.py/GenericRelationTests.test_target_model_nonzero_false