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
I understand that ansible-rulebook is open source software provided for free and that I might not receive a timely response.
Bug Summary
When developing filter plugins, passing --source-dir does not allow for local filter plugins, only local local source plugins. This means that the filter plugin has to be published in a collection to be tested.
Environment
[root@dd6d2c871e07 cloin.eda]# ansible-rulebook --version
__version__ = '1.0.1'
Executable location = /usr/local/bin/ansible-rulebook
Drools_jpy version = 0.3.4
Java home = /usr/lib/jvm/jre-17-openjdk
Java version = 17.0.8
Python version = 3.11.4 (main, Jun 7 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)]
Steps to reproduce
Create a filter plugin and keep it local.
Specify the filter plugin in a rulebook against an already published event source:
---
- name: Respond to webhook POST
hosts: all
sources:
- ansible.eda.webhook:
host: 0.0.0.0
port: 5000
filters:
- endpoint_as_namespace:
Please confirm the following
Bug Summary
When developing filter plugins, passing
--source-dir
does not allow for local filter plugins, only local local source plugins. This means that the filter plugin has to be published in a collection to be tested.Environment
Steps to reproduce
ansible-rulebook -r webhook.yml -i inventory.yml -S ./extensions/eda/plugins/event_filter/ --verbose
Actual results
ansible-rulebook fails because it can't find the filter plugin
Expected results
ansible-rulebook finds the filter plugin based on the path in SOURCE_DIR
Additional information
No response
The text was updated successfully, but these errors were encountered: