From 210ec5003df3fc0505f658ff233d062688d93255 Mon Sep 17 00:00:00 2001 From: Elena Ezhova Date: Mon, 16 Jun 2014 16:14:19 +0400 Subject: [PATCH] Handle unused allowed_remote_exmods in _multi_send allowed_remote_exmods which is passed to _multi_send method in impl_zmq.py is not passed further to _call, _cast, etc. Due to that, all remote exceptions, that are supposed to be expected, are wrapped into messaging.RemoteError exception with all details of the remote exception. To fix this allowed_remote_exmods needs to be passed as a parameter in a called method(). Change-Id: If1dc2f85eab6f542bc21961b9d5c0bd0ab64add2 Closes-Bug: 1330460 --- oslo/messaging/_drivers/impl_zmq.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oslo/messaging/_drivers/impl_zmq.py b/oslo/messaging/_drivers/impl_zmq.py index a98a0130e..826c58c49 100644 --- a/oslo/messaging/_drivers/impl_zmq.py +++ b/oslo/messaging/_drivers/impl_zmq.py @@ -750,7 +750,8 @@ def _multi_send(method, context, topic, msg, timeout=None, eventlet.spawn_n(method, _addr, context, _topic, msg, timeout, envelope, _msg_id) else: - return_val = method(_addr, context, _topic, msg, timeout, envelope) + return_val = method(_addr, context, _topic, msg, timeout, + envelope, allowed_remote_exmods) return return_val