Avoid extra check if we have job_explanation

This commit is contained in:
Alan Rominger
2021-10-18 16:07:36 -04:00
committed by Jim Ladd
parent 081ce23b7d
commit 89bee9d512

View File

@@ -3174,7 +3174,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()