diff options
author | Laszlo Hegedus <laszlo.hegedus@ericsson.com> | 2016-05-23 09:20:04 +0200 |
---|---|---|
committer | Balazs Gibizer <balazs.gibizer@ericsson.com> | 2016-06-21 09:39:47 +0200 |
commit | 6329d721ef326488d5d660e4f68febf563ed93ab (patch) | |
tree | f58c81d0177f00b85c306a2c01b927b6a712797b /nova/rpc.py | |
parent | 5cb46edbf089b477a57bf48a13956e4be493d1db (diff) | |
download | nova-6329d721ef326488d5d660e4f68febf563ed93ab.tar.gz |
Transform wrap_exception notification to versioned format
A new versioned notification is emitted from the wrap_exception
decorator.
Change-Id: I8fcbce111537dae6ad3ba0961fb761540ae800ed
Partially-Implements: bp versioned-notification-transformation-newton
Diffstat (limited to 'nova/rpc.py')
-rw-r--r-- | nova/rpc.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nova/rpc.py b/nova/rpc.py index 78c7189870..3f281d74e1 100644 --- a/nova/rpc.py +++ b/nova/rpc.py @@ -346,12 +346,12 @@ class LegacyValidatingNotifier(object): functools.partial(self._notify, priority)) def _is_wrap_exception_notification(self, payload): - # nova.exception.wrap_exception decorator emits notification where the - # event_type is the name of the decorated function. This is used in - # many places but it will be converted to versioned notification in one - # run by updating the decorator so it is pointless to white list all - # the function names here we white list the notification itself - # detected by the special payload keys. + # nova.exception_wrapper.wrap_exception decorator emits notification + # where the event_type is the name of the decorated function. This + # is used in many places but it will be converted to versioned + # notification in one run by updating the decorator so it is pointless + # to white list all the function names here we white list the + # notification itself detected by the special payload keys. return {'exception', 'args'} == set(payload.keys()) def _notify(self, priority, ctxt, event_type, payload): |