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 Shane McDonald
parent 47e67481b3
commit 2839091b22
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

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