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
This commit is contained in:
Elena Ezhova 2014-06-16 16:14:19 +04:00
parent f2cd28e503
commit 210ec5003d
1 changed files with 2 additions and 1 deletions

View File

@ -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