We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get a Key Error when we making an assignment to events after a match.
Trying to run a playbook after an assignment on an event match
condition: events.third << event.i == 2
Tell us what happened, what went wrong, and what you expected to happen. E KeyError: 'event' https://github.com/benthomasson/ansible-events/blob/38ba754fa97b2b188b424ed898ce084985544510/ansible_events/builtin.py#L134
Ran a playbook as part of assigning a matched event.
Modified tests/test_simple.yml changed condition: event.i == 2 to condition: events.second << event.i == 2 Ran pytest pytest tests/test_engine.py::test_run_rules_simple
The text was updated successfully, but these errors were encountered:
I haven't tried the << operator in a single condition yet. I am not sure if that would work. It should throw a better error if it does not.
<<
Sorry, something went wrong.
No branches or pull requests
Description
Get a Key Error when we making an assignment to events after a match.
Trying to run a playbook after an assignment on an event match
Tell us what happened, what went wrong, and what you expected to happen.
E KeyError: 'event'
https://github.com/benthomasson/ansible-events/blob/38ba754fa97b2b188b424ed898ce084985544510/ansible_events/builtin.py#L134
What I Did
Ran a playbook as part of assigning a matched event.
The text was updated successfully, but these errors were encountered: