Add CONTEXT_WRITER to _get_default_fwg_id

Change-Id: I8cc90dc564e9d4fb5637216619ea972bf9a4c417
Closes-Bug: #2006683
This commit is contained in:
elajkat 2023-02-15 11:52:41 +01:00
parent fc5531e978
commit 054275813e
1 changed files with 1 additions and 0 deletions

View File

@ -856,6 +856,7 @@ class FirewallPluginDb(object):
firewall_group_id=firewall_group_id).delete()
return
@db_api.CONTEXT_WRITER
def _get_default_fwg_id(self, context, tenant_id):
"""Returns an id of default firewall group for given tenant or None"""
default_fwg = model_query.query_with_hooks(