mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 10:57:35 -02: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
|
rc = res.rc
|
||||||
|
|
||||||
if status in ('timeout', 'error'):
|
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':
|
if status == 'timeout':
|
||||||
status = 'failed'
|
status = 'failed'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user