@util.deprecated
def validate_package_config(
    config, adapter_id, whole_check=False, **kwargs
):
    load_metadatas()
    if adapter_id not in PACKAGE_METADATA_MAPPING:
        raise exception.InvalidParameter(
            'adapter %s is not found in package metedata mapping' % adapter_id
        )
    _validate_config(
        '', config, PACKAGE_METADATA_MAPPING[adapter_id],
        whole_check, **kwargs
    )
Validate package config.
dataset/ETHPy150Open openstack/compass-core/compass/db/api/metadata_holder.py/validate_package_config