Fix usage of registry.receives in Nova notifier

Receives expects a list of events for each resource.

TrivalFix
Change-Id: I4a39f2e9d2f10639a209e7311fe44b94d369c5b1
This commit is contained in:
Kevin Benton 2017-06-14 01:57:23 -07:00
parent 1a8901a1ed
commit 7737e69809

View File

@ -95,8 +95,8 @@ class Notifier(object):
'name': VIF_DELETED, 'name': VIF_DELETED,
'tag': port['id']} 'tag': port['id']}
@registry.receives(resources.PORT, events.BEFORE_RESPONSE) @registry.receives(resources.PORT, [events.BEFORE_RESPONSE])
@registry.receives(resources.FLOATING_IP, events.BEFORE_RESPONSE) @registry.receives(resources.FLOATING_IP, [events.BEFORE_RESPONSE])
def _send_nova_notification(self, resource, event, trigger, def _send_nova_notification(self, resource, event, trigger,
action=None, original=None, data=None, action=None, original=None, data=None,
**kwargs): **kwargs):