From 2839091b2274317345f2048f48ea299e90c4fb52 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Mon, 18 Oct 2021 16:07:36 -0400 Subject: [PATCH] Avoid extra check if we have job_explanation --- 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 b83c440d09..7de5902121 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -3182,7 +3182,7 @@ class AWXReceptorJob: if state_name == 'Succeeded': return res - if not self.task.instance.result_traceback: + if not (self.task.instance.result_traceback or self.task.instance.job_explanation): try: resultsock = receptor_ctl.get_work_results(self.unit_id, return_sockfile=True) lines = resultsock.readlines()