Fix ceilometer.alarm.notifier.trust import

Import ceilometer.alarm.notifier.rest instead of
ceilometer.alarm.notifier to be able to use the rest module.

Change-Id: I82eea5c2f3ec0a8c5f33307d41df45111788c50f
Closes-Bug: #1327818
This commit is contained in:
Gauvain Pocentek 2014-06-08 19:05:49 +02:00
parent 3b720b6809
commit 0e43754328
1 changed files with 3 additions and 3 deletions

View File

@ -19,10 +19,10 @@ from keystoneclient.v3 import client as keystone_client
from oslo.config import cfg
from six.moves.urllib import parse
from ceilometer.alarm import notifier
from ceilometer.alarm.notifier import rest
class TrustRestAlarmNotifier(notifier.rest.RestAlarmNotifier):
class TrustRestAlarmNotifier(rest.RestAlarmNotifier):
"""Notifier supporting keystone trust authentication.
This alarm notifier is intended to be used to call an endpoint using
@ -56,5 +56,5 @@ class TrustRestAlarmNotifier(notifier.rest.RestAlarmNotifier):
action.fragment)
headers = {'X-Auth-Token': client.auth_token}
notifier.rest.RestAlarmNotifier.notify(
rest.RestAlarmNotifier.notify(
action, alarm_id, previous, current, reason, reason_data, headers)