diff --git a/barbican/templates/bin/_simple_crypto_kek_rewrap.py.tpl b/barbican/templates/bin/_simple_crypto_kek_rewrap.py.tpl index 61a14ec397..daee4c7b95 100644 --- a/barbican/templates/bin/_simple_crypto_kek_rewrap.py.tpl +++ b/barbican/templates/bin/_simple_crypto_kek_rewrap.py.tpl @@ -36,8 +36,7 @@ class KekRewrap(object): self.db_engine = session.create_engine(conf.database.connection or conf.sql_connection) self._session_creator = scoping.scoped_session( orm.sessionmaker( - bind=self.db_engine, - autocommit=True + bind=self.db_engine ) ) self.crypto_plugin = simple_crypto.SimpleCryptoPlugin(conf) diff --git a/releasenotes/notes/barbican-d291498fada9e601.yaml b/releasenotes/notes/barbican-d291498fada9e601.yaml new file mode 100644 index 0000000000..651c7eafb7 --- /dev/null +++ b/releasenotes/notes/barbican-d291498fada9e601.yaml @@ -0,0 +1,6 @@ +--- +barbican: + - | + Removed the autocommit option, which has been deprecated + since SQLAlchemy 2.0. +...