mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 13:25:02 -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:
@@ -200,6 +200,8 @@ class CLI(object):
|
||||
)
|
||||
if formatted:
|
||||
print(utils.to_str(formatted), file=self.stdout)
|
||||
if hasattr(response, 'rc'):
|
||||
raise SystemExit(response.rc)
|
||||
else:
|
||||
if six.PY3:
|
||||
self.parser.print_help()
|
||||
|
||||
Reference in New Issue
Block a user