Browse Source

Merge "[stable-only] "_clean_logs_by_target_id" to use old notifications" into stable/train

changes/60/823360/1
Zuul 5 months ago committed by Gerrit Code Review
parent
commit
08401fb8b0
  1. 7
      neutron/services/logapi/logging_plugin.py

7
neutron/services/logapi/logging_plugin.py

@ -65,10 +65,11 @@ class LoggingPlugin(log_ext.LoggingPluginBase):
self._clean_logs(context.elevated(), sg_id=sg_id)
@registry.receives(resources.PORT, [events.AFTER_DELETE])
def _clean_logs_by_target_id(self, resource, event, trigger, payload):
def _clean_logs_by_target_id(self, resource, event, trigger, **kwargs):
# log.target_id == port
self._clean_logs(payload.context.elevated(),
port_id=payload.resource_id)
context = kwargs['context']
port_id = kwargs['port']['id']
self._clean_logs(context.elevated(), port_id=port_id)
@db_base_plugin_common.filter_fields
@db_base_plugin_common.convert_result_to_dict

Loading…
Cancel
Save