From 0cea730b10000f9e16af33d1cbbe9ca2004a3880 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Mon, 3 Apr 2017 11:10:13 -0400 Subject: Switch to get_notification_transport for Notifier Incorrect transport would get used when dual backends configured for oslo.messaging Change-Id: Ifa5dfb07b32ad753a1bdad26d2517df29e27aedc --- ceilometermiddleware/swift.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ceilometermiddleware') diff --git a/ceilometermiddleware/swift.py b/ceilometermiddleware/swift.py index 7049c09..5cf2b0f 100644 --- a/ceilometermiddleware/swift.py +++ b/ceilometermiddleware/swift.py @@ -121,7 +121,8 @@ class Swift(object): oslo_messaging.set_transport_defaults(conf.get('control_exchange', 'swift')) self._notifier = oslo_messaging.Notifier( - oslo_messaging.get_transport(cfg.CONF, url=conf.get('url')), + oslo_messaging.get_notification_transport(cfg.CONF, + url=conf.get('url')), publisher_id='ceilometermiddleware', driver=conf.get('driver', 'messagingv2'), topics=[conf.get('topic', 'notifications')]) -- cgit v1.2.1