'Commit reservations.
:param context: The request context, for access checks.
:param reservations: A list of the reservation UUIDs, as
returned by the reserve() method.
:param project_id: Specify the project_id if current context
is admin and admin wants to impact on
common user\'s tenant.'

def commit(self, context, reservations, project_id=None):

    if (project_id is None):
        project_id = context.project_id
    db.reservation_commit(context, reservations, project_id=project_id)
