You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accounting for #493
Using webhook instead of generic source (see also #494)
So the example I'm trying in full reads as:
---
- name: Delayed comparisonhosts: allsources:
- ansible.eda.webhook:
host: 0.0.0.0port: 5050# use 5050 as on Mac OSX the 5000 is already reserved by default OSrules:
- name: r1condition:
all:
- event.request.type == "Delete"
- event.friend_list.names is select("search", events.m_0.request.friend_name)action:
print_event:
pretty: true
but I get
ansible_rulebook.exception.ConditionParsingException: Error parsing: event.friend_list.names is select("search", events.m_0.request.friend_name). Expected end of text, found '(' (at char 33), (line:1, col:34)
run with ansible-rulebook --rulebook example.yml --verbose
Actual results
ansible_rulebook.exception.ConditionParsingException: Error parsing: event.friend_list.names is select("search", events.m_0.request.friend_name). Expected end of text, found '(' (at char 33), (line:1, col:34)
Expected results
not an error 🙃 since it's copied from the docs
Additional information
I'm possibly doing something wrong, hope these details help to ultimately triage if there is some bugs or it's my fault (in that case sorry I raised this)
The text was updated successfully, but these errors were encountered:
Please confirm the following
Bug Summary
I'm trying a variation of this snippet example from the doc:
ansible-rulebook/docs/conditions.rst
Lines 246 to 253 in 34d60eb
Accounting for #493
Using
webhook
instead ofgeneric
source (see also #494)So the example I'm trying in full reads as:
but I get
Environment
Steps to reproduce
example.yml
ansible-rulebook --rulebook example.yml --verbose
Actual results
Expected results
not an error 🙃 since it's copied from the docs
Additional information
I'm possibly doing something wrong, hope these details help to ultimately triage if there is some bugs or it's my fault (in that case sorry I raised this)
The text was updated successfully, but these errors were encountered: