From 4603ac5d1c1d948d8b805fae3f9c18c689b145c0 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 22 Oct 2015 10:49:42 -0400 Subject: [PATCH] Change dependent job failure message entity ref. Originally we were looking at the underlying project/inventory update but we are now populating the name of project updates and inventory updates a lot better so we'll just take their names --- awx/main/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index b18df63b92..0df4c195ad 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -170,10 +170,10 @@ def handle_work_error(self, task_id, subtasks=None): instance_name = '' if each_task['type'] == 'project_update': instance = ProjectUpdate.objects.get(id=each_task['id']) - instance_name = instance.project.name + instance_name = instance.name elif each_task['type'] == 'inventory_update': instance = InventoryUpdate.objects.get(id=each_task['id']) - instance_name = instance.inventory_source.inventory.name + instance_name = instance.name elif each_task['type'] == 'job': instance = Job.objects.get(id=each_task['id']) instance_name = instance.job_template.name