From 823e54a0b91ce4d9b92c8f6d6a9b60a7e298249c Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 8 Mar 2016 14:14:19 -0500 Subject: [PATCH] Fix an error sending success notifications --- awx/main/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 3942cc78bb..b8bb60905b 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -233,7 +233,8 @@ def handle_work_success(self, result, task_actual): task_actual['id'], instance_name, notification_body['url']) - send_notifications.delay([n.generate_notification(notification_subject, notification_body) + notification_body['friendly_name'] = friendly_name + send_notifications.delay([n.generate_notification(notification_subject, notification_body).id for n in set(notifiers.get('success', []) + notifiers.get('any', []))], job_id=task_actual['id'])