mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Merge pull request #9265 from shanemcd/fix-notification-tests
Fix test notifications
Reviewed-by: Ryan Petrello
https://github.com/ryanpetrello
This commit is contained in:
commit
9fc8144f8e
@ -336,7 +336,8 @@ def send_notifications(notification_list, job_id=None):
|
||||
sent = notification.notification_template.send(notification.subject, notification.body)
|
||||
notification.status = "successful"
|
||||
notification.notifications_sent = sent
|
||||
job_actual.log_lifecycle("notifications_sent")
|
||||
if job_id is not None:
|
||||
job_actual.log_lifecycle("notifications_sent")
|
||||
except Exception as e:
|
||||
logger.exception("Send Notification Failed {}".format(e))
|
||||
notification.status = "failed"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user