mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Missing ad-hoc notification template assignment
This commit is contained in:
parent
c1b2ba5a24
commit
77f2bd1c0d
@ -261,7 +261,7 @@ def handle_work_error(self, task_id, subtasks=None):
|
|||||||
elif each_task['type'] == 'ad_hoc_command':
|
elif each_task['type'] == 'ad_hoc_command':
|
||||||
instance = AdHocCommand.objects.get(id=each_task['id'])
|
instance = AdHocCommand.objects.get(id=each_task['id'])
|
||||||
instance_name = instance.module_name
|
instance_name = instance.module_name
|
||||||
notification_templates = []
|
notification_templates = instance.notification_templates
|
||||||
friendly_name = "AdHoc Command"
|
friendly_name = "AdHoc Command"
|
||||||
elif each_task['type'] == 'system_job':
|
elif each_task['type'] == 'system_job':
|
||||||
instance = SystemJob.objects.get(id=each_task['id'])
|
instance = SystemJob.objects.get(id=each_task['id'])
|
||||||
|
Loading…
Reference in New Issue
Block a user