1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 17:55:10 +03:00

when isolated or container jobs fail to launch, set job status to error

a status of error makes more sense, because failed generally points to
an issue with the playbook itself, while error is more generally used
for reporting issues internal to Tower

see: https://github.com/ansible/awx/issues/4909
This commit is contained in:
Ryan Petrello 2019-10-21 11:01:35 -04:00
parent b19539069c
commit a8aed53c10
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -172,6 +172,7 @@ class IsolatedManager(object):
if runner_obj.status == 'failed':
self.instance.result_traceback = runner_obj.stdout.read()
self.instance.save(update_fields=['result_traceback'])
return 'error', runner_obj.rc
return runner_obj.status, runner_obj.rc