@pick_context_manager_reader
def flavor_access_get_by_flavor_id(context, flavor_id):
 instance_type_id_subq = _flavor_get_id_from_flavor_query(context, flavor_id)
 access_refs = _flavor_access_query(context).filter_by(instance_type_id=instance_type_id_subq).all()
 return access_refs

@ pick_context_manager_reader def flavor_access_get_by_flavor_id ( context , flavor_id ) : instance_type_id_subq = _flavor_get_id_from_flavor_query ( context , flavor_id ) access_refs = _flavor_access_query ( context ) . filter_by ( instance_type_id = instance_type_id_subq ) . all ( ) return access_refs
get flavor access by flavor id .