Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ansible::Runner] Output Fix ManageIQ#2
For reading "stdout" for the `ansible-runner` invocation, use the `artifacts/result/job_events/*.json` files instead of the `stdout`, since they are consistently correct (it seems). There is some additional sorting and data massaging that is also done to make sure things are correct (and have been documented in the code directly), but it is mostly: - looping through the .json files in the directory - sorting them to the proper numerical order - Reading the files and appending them to a string - Ensuring a new lines exist for each file read This makes it so that each file's content is on it's own line in the same format as the `artifacts/result/stdout` that was used previously. I am pretty sure the downsides to this approach are limited, and the previous commit should make it so that any non-Hash values potentially generated from this new code will be a non-issue.
- Loading branch information