summaryrefslogtreecommitdiff
path: root/nova/rpc.py
diff options
context:
space:
mode:
authorLaszlo Hegedus <laszlo.hegedus@ericsson.com>2016-05-23 09:20:04 +0200
committerBalazs Gibizer <balazs.gibizer@ericsson.com>2016-06-21 09:39:47 +0200
commit6329d721ef326488d5d660e4f68febf563ed93ab (patch)
treef58c81d0177f00b85c306a2c01b927b6a712797b /nova/rpc.py
parent5cb46edbf089b477a57bf48a13956e4be493d1db (diff)
downloadnova-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.py12
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):