provider-ansible
provider-ansible copied to clipboard
respect ignore_errors when extracting error messages from event data
Description of your changes
Fixes #328
I have:
- [x] Read and followed Crossplane's contribution process.
- [x] Run
make reviewable
to ensure this PR is ready for review. - [ ] Added
backport release-x.y
labels to auto-backport this PR if necessary.
How has this code been tested
Create an ansiblerun with a task that is known to fail but set ignore_errors
to true, i.e.
tasks:
- ignore_errors: true
file:
path: /nonexistent
state: file
And have that run fail for some other reason (i.e. another task that fails and does not have ignore_errors set).
The failed ansiblerun should have a message about the faile task without ignore_errors, but should not have any messages about the one with ignore_errors