summaryrefslogtreecommitdiff
path: root/ceilometer/network
diff options
context:
space:
mode:
authorDavanum Srinivas <davanum@gmail.com>2015-12-02 23:43:34 -0500
committerJulien Danjou <julien@danjou.info>2015-12-07 14:06:25 +0100
commit155d4fa894ea07264c03db73ba0828d3b96de1ae (patch)
tree0697fafb307fb6adefd9aaf8018835b0136a840f /ceilometer/network
parentb98c2dbd530e96accfbb6bacab608bf22699a15c (diff)
downloadceilometer-155d4fa894ea07264c03db73ba0828d3b96de1ae.tar.gz
oslo.messaging option group/name change for notification topics
In Ib51e2839f9035d0cc0e3f459939d9f9003a8c810, oslo.messaging is introducing a new group for the notifiction options. This review is the minimum needed to support both old and newer oslo.messaging versions. (In other words, next oslo.messaging release will break ceilometer unless we work around for the new option group) Change-Id: I4765b3b9627983a245aa5521a85ad89e83ab8551
Diffstat (limited to 'ceilometer/network')
-rw-r--r--ceilometer/network/notifications.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ceilometer/network/notifications.py b/ceilometer/network/notifications.py
index 9d8d61bc..79220cec 100644
--- a/ceilometer/network/notifications.py
+++ b/ceilometer/network/notifications.py
@@ -59,8 +59,7 @@ class NetworkNotificationBase(plugin_base.NotificationBase):
# '%s.delete.start' % (self.resource_name),
]
- @staticmethod
- def get_targets(conf):
+ def get_targets(self, conf):
"""Return a sequence of oslo_messaging.Target
This sequence is defining the exchange and topics to be connected for
@@ -68,7 +67,7 @@ class NetworkNotificationBase(plugin_base.NotificationBase):
"""
return [oslo_messaging.Target(topic=topic,
exchange=conf.neutron_control_exchange)
- for topic in conf.notification_topics]
+ for topic in self.get_notification_topics(conf)]
def process_notification(self, message):
counter_name = getattr(self, 'counter_name', self.resource_name)