mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Only update the job_explanation on error if there wasn't already one
This commit is contained in:
parent
5fdfd4114a
commit
de0561dcc2
@ -1544,7 +1544,8 @@ class BaseTask(object):
|
||||
rc = res.rc
|
||||
|
||||
if status in ('timeout', 'error'):
|
||||
self.instance.job_explanation = f"Job terminated due to {status}"
|
||||
job_explanation = f"Job terminated due to {status}"
|
||||
self.instance.job_explanation = self.instance.job_explanation or job_explanation
|
||||
if status == 'timeout':
|
||||
status = 'failed'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user