Skip to content

Commit

Permalink
Fix unintented change in message wording
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Mar 14, 2022
1 parent 9d2b1a3 commit 2649484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/tasks/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,10 @@ def run(self, pk, **kwargs):
rc = res.rc

if status in ('timeout', 'error'):
self.runner_callback.delay_update(skip_if_already_set=True, job_explanation=f"Job terminated due to {status}")
if status == 'timeout':
status = 'failed'

self.runner_callback.delay_update(skip_if_already_set=True, job_explanation=f"Job terminated due to {status}")
# ensure failure notification sends even if playbook_on_stats event is not triggered
handle_success_and_failure_notifications.apply_async([self.instance.id])

Expand Down

0 comments on commit 2649484

Please sign in to comment.