def confirm(self, reservation_id):
        client = self._redis_maker()
        weblab_reservation        = WEBLAB_RESERVATION % reservation_id
        weblab_reservation_status = WEBLAB_RESERVATION_STATUS % reservation_id
        if not client.exists(weblab_reservation):
            raise CoordExc.ExpiredSessionError("Expired reservation")

        return client.hset(weblab_reservation_status, CURRENT, 1) != 0
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/core/coordinator/redis/reservations_manager.py/ReservationsManager.confirm/original