mirror of
https://github.com/ansible/awx.git
synced 2026-04-04 17:55:06 -02:30
cli: make launch with --monitor return code respect the final job status
see: https://github.com/ansible/awx/issues/5920 see: https://github.com/ansible/awx/issues/6079
This commit is contained in:
@@ -90,6 +90,8 @@ class Launchable(object):
|
||||
)
|
||||
if status:
|
||||
response.json['status'] = status
|
||||
if status in ('failed', 'error'):
|
||||
setattr(response, 'rc', 1)
|
||||
return response
|
||||
|
||||
def perform(self, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user