projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Multi-VIM support for vmware vROPs plugin
[osm/MON.git]
/
osm_mon
/
plugins
/
OpenStack
/
Aodh
/
notifier.py
diff --git
a/osm_mon/plugins/OpenStack/Aodh/notifier.py
b/osm_mon/plugins/OpenStack/Aodh/notifier.py
index
377404a
..
1de3284
100644
(file)
--- a/
osm_mon/plugins/OpenStack/Aodh/notifier.py
+++ b/
osm_mon/plugins/OpenStack/Aodh/notifier.py
@@
-72,11
+72,11
@@
class NotifierHandler(BaseHTTPRequestHandler):
post_data = post_data.decode()
except AttributeError:
pass
post_data = post_data.decode()
except AttributeError:
pass
- log.info("This alarm was triggered: %s",
json.dumps(post_data)
)
+ log.info("This alarm was triggered: %s",
post_data
)
# Send alarm notification to message bus
try:
# Send alarm notification to message bus
try:
- self.notify_alarm(json.
dump
s(post_data))
+ self.notify_alarm(json.
load
s(post_data))
except Exception:
log.exception("Error notifying alarm")
except Exception:
log.exception("Error notifying alarm")
@@
-107,7
+107,7
@@
class NotifierHandler(BaseHTTPRequestHandler):
sev=values['severity'],
date=a_date,
state=values['current'])
sev=values['severity'],
date=a_date,
state=values['current'])
- producer.
notify_alarm
(
+ producer.
publish_alarm_response
(
'notify_alarm', resp_message)
log.info("Sent alarm notification: %s", resp_message)
'notify_alarm', resp_message)
log.info("Sent alarm notification: %s", resp_message)