diff --git a/ceilometer/alarm/notifier/log.py b/ceilometer/alarm/notifier/log.py index ff8934add..754f308ee 100644 --- a/ceilometer/alarm/notifier/log.py +++ b/ceilometer/alarm/notifier/log.py @@ -26,6 +26,7 @@ LOG = log.getLogger(__name__) class LogAlarmNotifier(notifier.AlarmNotifier): "Log alarm notifier.""" + @staticmethod def notify(action, alarm, state, reason): LOG.info("Notifying alarm %s in state %s with action %s because %s", alarm, state, action, reason) diff --git a/ceilometer/alarm/notifier/rest.py b/ceilometer/alarm/notifier/rest.py index 8f2d575fd..d2a856f2c 100644 --- a/ceilometer/alarm/notifier/rest.py +++ b/ceilometer/alarm/notifier/rest.py @@ -52,7 +52,8 @@ cfg.CONF.register_opts(REST_NOTIFIER_OPTS, group="alarm") class RestAlarmNotifier(notifier.AlarmNotifier): """Rest alarm notifier.""" - def notify(self, action, alarm, state, reason): + @staticmethod + def notify(action, alarm, state, reason): LOG.info("Notifying alarm %s in state %s with action %s because %s", alarm, state, action, reason) body = {'state': state, 'reason': reason}