Avoid extra check if we have job_explanation

This commit is contained in:
Alan Rominger
2021-10-20 12:35:40 -07:00
committed by Jim Ladd
parent 081ce23b7d
commit 89bee9d512
+1 -1
View File
@@ -3174,7 +3174,7 @@ class AWXReceptorJob:
if state_name == 'Succeeded': if state_name == 'Succeeded':
return res return res
if not self.task.instance.result_traceback: if not (self.task.instance.result_traceback or self.task.instance.job_explanation):
try: try:
resultsock = receptor_ctl.get_work_results(self.unit_id, return_sockfile=True) resultsock = receptor_ctl.get_work_results(self.unit_id, return_sockfile=True)
lines = resultsock.readlines() lines = resultsock.readlines()