mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 06:58:06 -03:30
Avoid extra check if we have job_explanation
This commit is contained in:
parent
47e67481b3
commit
2839091b22
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user