-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Allow usage of array in actions configs #182
base: master
Are you sure you want to change the base?
Conversation
hi @zerrac, thanks for the PR. Can you add some unit tests for it? |
I have no idea how to do that but i will try tomorow |
@bastelfreak i tried something with the unit tests... I am not familiar with ruby, rspec or unit testing in general so please check carefully what i did ;) |
@zerrac can you please rebase against our latest master branch? |
can you please do an actual rebase instead of a merge commit? |
done! |
thanks for rebasing. Can you take a look at the failing unit tests? |
@@ -25,9 +25,13 @@ action(type="<%= $type %>" | |||
name="<%= $action_name %>" | |||
<%}-%> | |||
<% if $config { -%> |
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.
if you like you can also remove this if check. It doesn't make any sense anymore. We can always iterate on $config. If it's empty it won't print anything.
I added the if to avoid this :
maybe its better to change the test in some way but its too complicated for me |
i cant remember where the test were failling, can you relaunch them mannualy ? |
Dear @zerrac, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Pull Request (PR) description
According to the doc (https://www.rsyslog.com/doc/v8-stable/configuration/modules/omrelp.html) omrelp tls permitted peers can be given as an array.
example:
This PR reuse the same logic present in inputs.epp for to deal with arrays.
This Pull Request (PR) fixes the following issues
Following puppet declaration :
produce the following rsyslog config :
with the fix i have