mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Only update the job_explanation on error if there wasn't already one
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user