Ensure reservation_expire actually expires reservations
The existing unit test for this is a bit hard to follow given the setup, so this change simply ensures that the reservations created during the seutp are actually processed during reservation_expire in the DB API. Change-Id: I21fc6a441090b86f89b52c92976a81ba3c28f7d7
This commit is contained in:
parent
45cf7aa188
commit
a117e35b2d
@ -4007,7 +4007,7 @@ def reservation_expire(context):
|
||||
reservation.usage.reserved -= reservation.delta
|
||||
context.session.add(reservation.usage)
|
||||
|
||||
reservation_query.soft_delete(synchronize_session=False)
|
||||
return reservation_query.soft_delete(synchronize_session=False)
|
||||
|
||||
|
||||
###################
|
||||
|
Loading…
Reference in New Issue
Block a user