Merge "Don't directly access the in-memory DB for NB_Global row"

This commit is contained in:
Zuul 2020-09-03 01:59:09 +00:00 committed by Gerrit Code Review
commit de3cc88ac3
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ class OvsdbNbOvnIdl(nb_impl_idl.OvnNbApiIdlImpl, Backend):
@property
def nb_global(self):
return next(iter(self.tables['NB_Global'].rows.values()))
return next(iter(self.db_list_rows('NB_Global').execute(
check_error=True)))
def create_transaction(self, check_error=False, log_errors=True,
bump_nb_cfg=False):