Merge "use payloads for SECURITY_GROUP BEFORE_DELETE events"
This commit is contained in:
commit
c51ca05c26
|
@ -224,7 +224,8 @@ class SecurityGroupDbMixin(ext_sg.SecurityGroupPluginBase):
|
||||||
self._registry_notify(resources.SECURITY_GROUP,
|
self._registry_notify(resources.SECURITY_GROUP,
|
||||||
events.BEFORE_DELETE,
|
events.BEFORE_DELETE,
|
||||||
exc_cls=ext_sg.SecurityGroupInUse, id=id,
|
exc_cls=ext_sg.SecurityGroupInUse, id=id,
|
||||||
**kwargs)
|
payload=events.DBEventPayload(
|
||||||
|
context, states=(sg,), resource_id=id))
|
||||||
|
|
||||||
with db_api.CONTEXT_WRITER.using(context):
|
with db_api.CONTEXT_WRITER.using(context):
|
||||||
# pass security_group_rule_ids to ensure
|
# pass security_group_rule_ids to ensure
|
||||||
|
|
Loading…
Reference in New Issue