"_create_security_group_precommit" additional arguments are kwargs

"OVNMechanismDriver._create_security_group_precommit" receives the
notification from [1]. The aditional arguments passed are kwargs
and the position is not guaranteed.

[1]79cb971251/neutron/db/securitygroups_db.py (L137-L140)

Change-Id: I049523ac302fda227fe2f340d3deb6a15ffdb0fc
Related-Blueprint: neutron-ovn-merge
This commit is contained in:
Rodolfo Alonso Hernandez 2020-01-19 19:48:41 +00:00
parent 79cb971251
commit 6d1d4cd6ba
1 changed files with 3 additions and 2 deletions

View File

@ -257,9 +257,10 @@ class OVNMechanismDriver(api.MechanismDriver):
self._maintenance_thread.start()
def _create_security_group_precommit(self, resource, event, trigger,
security_group, context, **kwargs):
**kwargs):
ovn_revision_numbers_db.create_initial_revision(
context, security_group['id'], ovn_const.TYPE_SECURITY_GROUPS)
kwargs['context'], kwargs['security_group']['id'],
ovn_const.TYPE_SECURITY_GROUPS)
def _create_security_group(self, resource, event, trigger,
security_group, **kwargs):