def init_yml_plan_by_version():
    try:
        yml_input_plan = yamlutils.load(pecan.request.body)
    except __HOLE__ as excp:
        LOG.error("Invalid plan.")
        raise exception.BadRequest(reason='Plan is invalid. '
                                          + six.text_type(excp))
    return init_plan_by_version(yml_input_plan)
dataset/ETHPy150Open openstack/solum/solum/api/controllers/v1/plan.py/init_yml_plan_by_version