From 620fc56f576f0e9169ce81732307866f3e3a0ae8 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 12 Aug 2014 09:48:16 -0400 Subject: [PATCH] Fix a reference issue in the task impact job determination logic --- awx/main/models/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index e38fb1283d..376cea4e5a 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -286,7 +286,7 @@ class Job(UnifiedJob, JobOptions): def task_impact(self): # NOTE: We sorta have to assume the host count matches and that forks default to 5 from awx.main.models.inventory import Host - if obj.launch_type == 'callback': + if self.launch_type == 'callback': count_hosts = 1 else: count_hosts = Host.objects.filter(inventory__jobs__pk=self.pk).count()