Temporary fix for bad _dispatch() invocation
This fixes the incorrect arguments passed to _dispatch(), now that the method signature is changing in oslo.messaging. The code should be further updated to not use a private method of the base class. Change-Id: I2d72a687925122e1106c031df256dff4278dca5b Partial-bug: #1412977
This commit is contained in:
parent
c5ec416b7a
commit
a86181a9fe
@ -173,9 +173,9 @@ class RequestContextSerializer(messaging.Serializer):
|
||||
|
||||
|
||||
class RPCDispatcher(rpc_dispatcher.RPCDispatcher):
|
||||
def _dispatch(self, ctxt, message):
|
||||
def _dispatch(self, *args, **kwds):
|
||||
try:
|
||||
return super(RPCDispatcher, self)._dispatch(ctxt, message)
|
||||
return super(RPCDispatcher, self)._dispatch(*args, **kwds)
|
||||
except Exception as e:
|
||||
if getattr(e, 'expected', False):
|
||||
raise rpc_dispatcher.ExpectedException()
|
||||
|
Loading…
Reference in New Issue
Block a user