diff options
author | Julien Danjou <julien@danjou.info> | 2018-09-06 10:42:17 +0200 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2018-09-06 10:46:33 +0200 |
commit | e4bc4f4ca56630a6d47f4fc5b23c764bd33dd0e3 (patch) | |
tree | 4d2178b5eb95cf74a283c48d5104845aa5657f30 /ceilometer/notification.py | |
parent | b058b9bdbdc1c9d5f3bda0cbbc3d97ced1c46b01 (diff) | |
download | ceilometer-e4bc4f4ca56630a6d47f4fc5b23c764bd33dd0e3.tar.gz |
notification: do not store temporary transport
Change-Id: I6ef8a3f7cd3ac2e824bd2a64a64953d13413f0f7
Diffstat (limited to 'ceilometer/notification.py')
-rw-r--r-- | ceilometer/notification.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ceilometer/notification.py b/ceilometer/notification.py index 15e6dfab..f1180e30 100644 --- a/ceilometer/notification.py +++ b/ceilometer/notification.py @@ -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: |