-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
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
docs: add 'inserting hosts' section in docs #660
docs: add 'inserting hosts' section in docs #660
Conversation
972272f
to
f83d5d3
Compare
c91ab7d
to
cd0c12e
Compare
@Alex-Izquierdo we need to clarify another piece here
The host_path should have been just payload.event.fields.source but the filter ignores this error So we need to document that event prefix is needed for conditions and action args but not for source args and source filters.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some more notes on how the filter is suppressing key errors
I think we have to clarify the scope of this PR and the documentation of ansible-rulebook. What you say is not general, but specific to the insert_hosts_to_meta. This section is just to indicate the use case of the plugin regarding host limits, not to document the plugin itself. Unless we decide that ansible-rulebook docs portal is going to store the documentation for the plugins of the EDA collection, such a documentation should be in the documentation for the plugins (wherever it is going to be) and not here otherwise it will create more confusion. Documentation that by the way, right now only exists in the comments of the plugin, we already have a task to create that documentation. So I can remark here that it should not include the "event" prefix until we write the documentation of the plugins and/or update the plugin to handle better the issue that you have described, but we should not put here the whole documentation for that plugin. We definitely should prioritize the documentation of the plugins. In fact, we already have a "sources" section when we list the plugins (are outdated) in the collection which is confusing, untied the versioning of the collection and ansible-rulebook. I feel we need to revisit all of this. |
a21ef01
to
b3a8a4c
Compare
29abca2
to
5b0a6dd
Compare
I created ansible/event-driven-ansible#197 to add the option to raise an exception from the insert_hosts_to_meta filter. |
@bzwei great! If we merge it first, I can update this. |
No description provided.