diff --git a/manila/db/sqlalchemy/api.py b/manila/db/sqlalchemy/api.py index 0d4f61c76d..57e5a8fc9a 100644 --- a/manila/db/sqlalchemy/api.py +++ b/manila/db/sqlalchemy/api.py @@ -81,7 +81,7 @@ context_manager.configure(__autocommit=True) def get_engine(): - return context_manager._factory.get_legacy_facade().get_engine() + return context_manager.writer.get_engine() def get_backend():