Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10025 from shanemcd/better-errors
Improve error handling / display when Ansible Runner errors Before you would see unhelpful error messages like: Traceback (most recent call last): File "/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py", line 1397, in run res = receptor_job.run() File "/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py", line 2957, in run return self._run_internal(receptor_ctl) File "/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py", line 3008, in _run_internal raise RuntimeError(detail) RuntimeError: exit status 0 Now you will see the underlying error: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/ansible_runner/streaming.py", line 108, in run utils.unstream_dir(zip_data, self.private_data_dir) File "/usr/local/lib/python3.8/site-packages/ansible_runner/utils.py", line 104, in unstream_dir data = base64.b85decode(data) File "/usr/lib64/python3.8/base64.py", line 463, in b85decode raise ValueError('bad base85 character at position %d' ValueError: bad base85 character at position 121 Reviewed-by: Christian Adams <[email protected]> Reviewed-by: Alan Rominger <[email protected]> Reviewed-by: Shane McDonald <[email protected]>
- Loading branch information