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()