Пример #1
0
def _flavor_del_project(context, flavor_id, project_id):
    result = context.session.query(api_models.FlavorProjects).\
             filter_by(project_id=project_id).\
             filter_by(flavor_id=flavor_id).\
             delete()
    if result == 0:
        raise exception.FlavorAccessNotFound(flavor_id=flavor_id,
                                             project_id=project_id)
Пример #2
0
 def stub_remove_flavor_access(context, flavorid, projectid):
     raise exception.FlavorAccessNotFound(flavor_id=flavorid,
                                          project_id=projectid)
Пример #3
0
 def stub_remove_instance_type_access(flavorid, projectid, ctxt=None):
     raise exception.FlavorAccessNotFound(flavor_id=flavorid,
                                          project_id=projectid)