def check_migration(migration, attribute, value, dataset_config):

    migration_name = '%s->%s' % (migration['from'], migration['to'])
    allowed = dataset_config[attribute].get(
        migration_name, dataset_config[attribute]['default'])
    if value > allowed:
        return False
    return True
Checks if a given migration is within its allowed parameters.
dataset/ETHPy150Open openstack/turbo-hipster/turbo_hipster/task_plugins/real_db_upgrade/handle_results.py/check_migration