review fixes
This commit is contained in:
@@ -45,14 +45,6 @@ def publisher_id(service, host=None):
|
|||||||
return "%s.%s" % (service, host)
|
return "%s.%s" % (service, host)
|
||||||
|
|
||||||
|
|
||||||
def safe_notify(publisher_id, event_type, priority, payload):
|
|
||||||
try:
|
|
||||||
notify(publisher_id, event_type, notification_level, payload)
|
|
||||||
except Exception, e:
|
|
||||||
LOG.exception(_("Problem '%(e)s' attempting to "
|
|
||||||
"send to notification system." % locals()))
|
|
||||||
|
|
||||||
|
|
||||||
def notify(publisher_id, event_type, priority, payload):
|
def notify(publisher_id, event_type, priority, payload):
|
||||||
"""
|
"""
|
||||||
Sends a notification using the specified driver
|
Sends a notification using the specified driver
|
||||||
@@ -95,4 +87,8 @@ def notify(publisher_id, event_type, priority, payload):
|
|||||||
priority=priority,
|
priority=priority,
|
||||||
payload=payload,
|
payload=payload,
|
||||||
timestamp=str(utils.utcnow()))
|
timestamp=str(utils.utcnow()))
|
||||||
driver.notify(msg)
|
try:
|
||||||
|
driver.notify(msg)
|
||||||
|
except Exception, e:
|
||||||
|
LOG.exception(_("Problem '%(e)s' attempting to "
|
||||||
|
"send to notification system." % locals()))
|
||||||
|
|||||||
Reference in New Issue
Block a user