cyborg/db/sqlalchemy/api.py
def _get_reservation_resources(self, context, reservation_ids):
        """Return the relevant resources by reservations."""

        reservations = model_query(context, models.Reservation). \
            options(load_only('resource')). \
            filter(models.Reservation.uuid.in_(reservation_ids)). \
            all()
        return {r.resource for r in reservations}
Return the relevant resources by reservations.
Return the relevant resources by reservations.
Return the relevant resources by reservations .
def _get_reservation_resources(self, context, reservation_ids):
        reservations = model_query(context, models.Reservation). \
            options(load_only('resource')). \
            filter(models.Reservation.uuid.in_(reservation_ids)). \
            all()
        return {r.resource for r in reservations}
def _get_reservation_resources ( self , context , reservation_ids ) : reservations = model_query ( context , models . Reservation ) . options ( load_only ( 'resource' ) ) . filter ( models . Reservation . uuid . in_ ( reservation_ids ) ) . all ( ) return { r . resource for r in reservations }
Return the relevant resources by reservations.
Return the relevant resources by reservations .
"""Return the relevant resources by reservations."""
self
context
reservation_ids