diff options
author | Julien Danjou <julien@danjou.info> | 2014-02-06 15:14:51 +0100 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2014-02-06 15:14:51 +0100 |
commit | 05f688e49fbf543a6c69c0f186279c6732118470 (patch) | |
tree | e061f27cf57927849a5796b63384791cad9e077a /nova/rpc.py | |
parent | 357ec965024ed09c6ef6f0fcd6a5d0a7f7362978 (diff) | |
download | nova-05f688e49fbf543a6c69c0f186279c6732118470.tar.gz |
nova: use RequestContextSerializer for notifications
RequestContext should be serialized when sent via oslo.messaging. The
serializer is correctly used for the general RPC mechanism, but has been
forgotten in the notifier. This patch fixes that.
Change-Id: I56fa8022e34c0e80835e3bde940fda99ed0f9ba8
Closes-Bug: #1275771
Diffstat (limited to 'nova/rpc.py')
-rw-r--r-- | nova/rpc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/rpc.py b/nova/rpc.py index a54610f9db..c68bcb183d 100644 --- a/nova/rpc.py +++ b/nova/rpc.py @@ -60,7 +60,8 @@ def init(conf): TRANSPORT = messaging.get_transport(conf, allowed_remote_exmods=exmods, aliases=TRANSPORT_ALIASES) - NOTIFIER = messaging.Notifier(TRANSPORT) + NOTIFIER = messaging.Notifier(TRANSPORT, + serializer=RequestContextSerializer(None)) def cleanup(): |