diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index 59f0a8c29..a67747e40 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -202,7 +202,7 @@ def select_db_reader_mode(f): use_slave = keyed_args.get('use_slave', False) if use_slave: - reader_mode = get_context_manager(context).async_ + reader_mode = get_context_manager(context).async else: reader_mode = get_context_manager(context).reader