Skip to content

Commit

Permalink
Update templates/default/rsyslog.conf.erb
Browse files Browse the repository at this point in the history
Co-authored-by: Corey Hemminger <[email protected]>
  • Loading branch information
stlng2 and Stromweld authored Dec 17, 2024
1 parent b208349 commit 0a1c871
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/default/rsyslog.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ $PreserveFQDN <%= node['rsyslog']['preserve_fqdn'] %>

<% if node['rsyslog']['modules'] && !node['rsyslog']['modules'].empty? %>
<% [*node['rsyslog']['modules']].each do |mod| %>
module(load="<%= mod %>"<%- if node['rsyslog']["#{mod}_directives"]
node['rsyslog']["#{mod}_directives"].each do |k, v| -%> <%= k %>="<%= v %>"<% end %>)
<%- end -%>
module(load="<%= mod %>"<%- node['rsyslog']["#{mod}_directives"]&.each { |k, v| <%= k %>="<%= v %>" })
<%- end -%>
<%- end -%>
<% end %>

Expand Down

0 comments on commit 0a1c871

Please sign in to comment.