Fix compatibility with oslo.db 12.1.0
oslo.db 12.1.0 has changed the default value for the 'autocommit' parameter of 'LegacyEngineFacade' from 'True' to 'False'. This is a necessary step to ensure compatibility with SQLAlchemy 2.0. However, we are currently relying on the autocommit behavior and need changes to explicitly manage sessions. Until that happens, we need to override the default. Change-Id: I9e095d810ff5398920e8ffd4f2f089d9b8d29335 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
parent
7f933a1bed
commit
74795abf2f
@ -13,4 +13,6 @@
|
||||
from oslo_db.sqlalchemy import enginefacade
|
||||
|
||||
# NOTE(dtantsur): we want sqlite as close to a real database as possible.
|
||||
enginefacade.configure(sqlite_fk=True)
|
||||
# FIXME(stephenfin): we need to remove reliance on autocommit semantics ASAP
|
||||
# since it's not compatible with SQLAlchemy 2.0
|
||||
enginefacade.configure(sqlite_fk=True, __autocommit=True)
|
||||
|
Loading…
Reference in New Issue
Block a user