From 59ca8b0b44bbb2276d7e5903bfe9d14a6a26d901 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Wed, 15 Feb 2012 18:58:45 +0000 Subject: [PATCH] Function uses 'msg' not 'message' Fixes bug 932986 Change-Id: Iafc70145b7bc9d71fef19db0f303a65468b934cb --- glance/notifier/notify_kombu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glance/notifier/notify_kombu.py b/glance/notifier/notify_kombu.py index bcdabc54..6a56fbae 100644 --- a/glance/notifier/notify_kombu.py +++ b/glance/notifier/notify_kombu.py @@ -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):