@require_context
def instance_type_get_by_flavor_id(context, flavor_id, session=None):
 result = _instance_type_get_query(context, session=session).filter_by(flavorid=flavor_id).first()
 if (not result):
  raise exception.FlavorNotFound(flavor_id=flavor_id)
 return _dict_with_extra_specs(result)

@ require_context def instance_type_get_by_flavor_id ( context , flavor_id , session = None ) : result = _instance_type_get_query ( context , session = session ) . filter_by ( flavorid = flavor_id ) . first ( ) if ( not result ) : raise exception . FlavorNotFound ( flavor_id = flavor_id ) return _dict_with_extra_specs ( result )
returns a dict describing specific flavor_id .