Function uses 'msg' not 'message'
Fixes bug 932986 Change-Id: Iafc70145b7bc9d71fef19db0f303a65468b934cb
This commit is contained in:
parent
bd4d632861
commit
59ca8b0b44
@ -171,7 +171,7 @@ class RabbitStrategy(strategy.Strategy):
|
||||
|
||||
def _send_message(self, msg, routing_key):
|
||||
"""Send a message. Caller needs to catch exceptions for retry."""
|
||||
msg = self.exchange.Message(json.dumps(message))
|
||||
msg = self.exchange.Message(json.dumps(msg))
|
||||
self.exchange.publish(msg, routing_key=routing_key)
|
||||
|
||||
def _notify(self, msg, priority):
|
||||
|
Loading…
Reference in New Issue
Block a user