summaryrefslogtreecommitdiff
path: root/ceilometer/ipmi
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/ipmi
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/ipmi')
-rw-r--r--ceilometer/ipmi/notifications/ironic.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ceilometer/ipmi/notifications/ironic.py b/ceilometer/ipmi/notifications/ironic.py
index a4456d89..743558d7 100644
--- a/ceilometer/ipmi/notifications/ironic.py
+++ b/ceilometer/ipmi/notifications/ironic.py
@@ -79,12 +79,11 @@ class SensorNotification(plugin_base.NotificationBase):
event_types = ['hardware.ipmi.*']
metric = None
- @staticmethod
- def get_targets(conf):
+ def get_targets(self, conf):
"""oslo.messaging.TargetS for this plugin."""
return [messaging.Target(topic=topic,
exchange=conf.ironic_exchange)
- for topic in conf.notification_topics]
+ for topic in self.get_notification_topics(conf)]
def _get_sample(self, message):
try: