Browse Source

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
Doug Hellmann 4 years ago
parent
commit
a86181a9fe
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      designate/rpc.py

+ 2
- 2
designate/rpc.py View File

@@ -173,9 +173,9 @@ class RequestContextSerializer(messaging.Serializer):
173 173
 
174 174
 
175 175
 class RPCDispatcher(rpc_dispatcher.RPCDispatcher):
176
-    def _dispatch(self, ctxt, message):
176
+    def _dispatch(self, *args, **kwds):
177 177
         try:
178
-            return super(RPCDispatcher, self)._dispatch(ctxt, message)
178
+            return super(RPCDispatcher, self)._dispatch(*args, **kwds)
179 179
         except Exception as e:
180 180
             if getattr(e, 'expected', False):
181 181
                 raise rpc_dispatcher.ExpectedException()

Loading…
Cancel
Save