Fix regression missing notify_action for script notifications

This commit is contained in:
JonnyWong16 2016-03-28 22:21:23 -07:00
parent 8f665622d6
commit 076659db52

View file

@ -487,7 +487,7 @@ def send_notification(agent_id, subject, body, notify_action, **kwargs):
slackClient.notify(message=body, event=subject) slackClient.notify(message=body, event=subject)
elif agent_id == 15: elif agent_id == 15:
scripts = Scripts() scripts = Scripts()
scripts.notify(message=body, subject=subject, **kwargs) scripts.notify(message=body, subject=subject, notify_action=notify_action, **kwargs)
elif agent_id == 16: elif agent_id == 16:
facebook = FacebookNotifier() facebook = FacebookNotifier()
facebook.notify(subject=subject, message=body, **kwargs) facebook.notify(subject=subject, message=body, **kwargs)