From 8b7bfb4cfc9ba3d7dbc618b2dd637ac3d11ebb79 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Mon, 4 Apr 2016 18:35:47 +0300 Subject: [PATCH] Use messaging notifications transport instead of default The usage of oslo_messaging.get_transport is not meant for notifications; And oslo_messaging.get_notification_transport is favored for those means. So this change introduces the usage of that function. If the settings for the notifications are not set with the configuration that's under the oslo_messaging_notifications group, this will fall back to the old settings which are under the DEFAULT group; just like this used to work. Change-Id: Id1f89c89fa23d19e9229af7e80df179b6e17a635 --- keystone/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystone/notifications.py b/keystone/notifications.py index 30d1713cc9..dcb18c5523 100644 --- a/keystone/notifications.py +++ b/keystone/notifications.py @@ -329,7 +329,7 @@ def _get_notifier(): if _notifier is None: host = CONF.default_publisher_id or socket.gethostname() try: - transport = oslo_messaging.get_transport(CONF) + transport = oslo_messaging.get_notification_transport(CONF) _notifier = oslo_messaging.Notifier(transport, "identity.%s" % host) except Exception: