mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Return success/failed message for testing notifications
This commit is contained in:
parent
698275633f
commit
ff532a5c6c
3 changed files with 46 additions and 29 deletions
|
@ -1625,8 +1625,10 @@ class WebInterface(object):
|
|||
|
||||
if this_agent:
|
||||
logger.debug(u"Sending test %s notification." % this_agent['name'])
|
||||
notifiers.send_notification(this_agent['id'], subject, body, 'test', **kwargs)
|
||||
return "Notification sent."
|
||||
if notifiers.send_notification(this_agent['id'], subject, body, 'test', **kwargs):
|
||||
return "Notification sent."
|
||||
else:
|
||||
return "Notification failed."
|
||||
else:
|
||||
logger.debug(u"Unable to send test notification, invalid notification agent ID %s." % agent_id)
|
||||
return "Invalid notification agent ID %s." % agent_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue