From 1ed170fff096dfdee01c6d6c449632c6ac72cff4 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Fri, 25 Jun 2021 12:32:33 -0400 Subject: [PATCH] Dont overwrite result_traceback if it was already set. --- awx/main/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index b5d1ae397f..26f5da81d1 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -3006,7 +3006,8 @@ class AWXReceptorJob: if state_name == 'Succeeded': return res - raise RuntimeError(detail) + if self.task.instance.result_traceback is None: + raise RuntimeError(detail) return res