Merge "use payloads for SECURITY_GROUP BEFORE_CREATE events"
This commit is contained in:
commit
c2b779d278
@ -91,7 +91,12 @@ class ExtendedSecurityGroupPropertiesMixin(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
self._registry_notify(resources.SECURITY_GROUP, events.BEFORE_CREATE,
|
self._registry_notify(resources.SECURITY_GROUP, events.BEFORE_CREATE,
|
||||||
exc_cls=ext_sg.SecurityGroupConflict, **kwargs)
|
exc_cls=ext_sg.SecurityGroupConflict,
|
||||||
|
payload=events.DBEventPayload(
|
||||||
|
context, metadata={'is_default': default_sg},
|
||||||
|
request_body=security_group,
|
||||||
|
desired_state=s))
|
||||||
|
|
||||||
tenant_id = s['tenant_id']
|
tenant_id = s['tenant_id']
|
||||||
|
|
||||||
if not default_sg:
|
if not default_sg:
|
||||||
|
Loading…
Reference in New Issue
Block a user