Drop "__autocommit=False" from context manager

This parameter was dropped in oslo.db 12.1.0 [1][2]. This patch
is consequently bumping the oslo.db minimum version to 12.1.0.

[1]https://review.opendev.org/c/openstack/oslo.db/+/804775
[2]a530cbfcf2

Change-Id: Iadb56c88e45fbb2db00fff564bff443292025f66
This commit is contained in:
Rodolfo Alonso Hernandez 2023-04-24 11:39:47 +02:00
parent e52a9372f7
commit 72cd6f33d4
2 changed files with 2 additions and 5 deletions

View File

@ -48,10 +48,7 @@ def _create_context_manager():
global _CTX_MANAGER
if _CTX_MANAGER is None:
_CTX_MANAGER = enginefacade.transaction_context()
# TODO(stephenfin): Drop "__autocommit=False" when oslo.db changes its
# default (https://review.opendev.org/c/openstack/oslo.db/+/804775)
_CTX_MANAGER.configure(sqlite_fk=True, flush_on_subtransaction=True,
__autocommit=False)
_CTX_MANAGER.configure(sqlite_fk=True, flush_on_subtransaction=True)
return _CTX_MANAGER

View File

@ -17,7 +17,7 @@ os-ken >= 0.3.0 # Apache-2.0
oslo.concurrency>=3.26.0 # Apache-2.0
oslo.config>=8.0.0 # Apache-2.0
oslo.context>=2.22.0 # Apache-2.0
oslo.db>=4.44.0 # Apache-2.0
oslo.db>=12.1.0 # Apache-2.0
oslo.i18n>=3.20.0 # Apache-2.0
oslo.log>=4.3.0 # Apache-2.0
oslo.messaging>=14.2.0 # Apache-2.0