From 77f2bd1c0d0551a71d8c9250795fd52167ba8644 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 5 Jul 2016 14:34:27 -0400 Subject: [PATCH] Missing ad-hoc notification template assignment --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index e2c363023e..04efceb3ae 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -261,7 +261,7 @@ def handle_work_error(self, task_id, subtasks=None): elif each_task['type'] == 'ad_hoc_command': instance = AdHocCommand.objects.get(id=each_task['id']) instance_name = instance.module_name - notification_templates = [] + notification_templates = instance.notification_templates friendly_name = "AdHoc Command" elif each_task['type'] == 'system_job': instance = SystemJob.objects.get(id=each_task['id'])