notification: do not store temporary transport

Change-Id: I6ef8a3f7cd3ac2e824bd2a64a64953d13413f0f7
This commit is contained in:
Julien Danjou 2018-09-06 10:42:17 +02:00
parent b058b9bdbd
commit e4bc4f4ca5

View File

@ -119,14 +119,12 @@ class NotificationService(cotyledon.Service):
on_missing_entrypoints_callback=self._log_missing_pipeline,
invoke_args=(self.conf,))]
self.transport = messaging.get_transport(self.conf)
# FIXME(sileht): endpoint uses the notification_topics option
# and it should not because this is an oslo_messaging option
# not a ceilometer. Until we have something to get the
# notification_topics in another way, we must create a transport
# to ensure the option has been registered by oslo_messaging.
messaging.get_notifier(self.transport, '')
messaging.get_notifier(messaging.get_transport(self.conf), '')
endpoints = []
for pipe_mgr in self.managers: