1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-14 14:00:36 +00:00

Change variable names for inner loop in filter.erb

When using the module with puppet 3.8.7, ran into an issue where the variable assignment of the inner loop was overwriting the variables of the same name in the outer loop.  This was causing filter configs to be generated with an unmatched record tag.  I have simply changed the names of the variables in the inner loop of the template so that the will no longer occur.
This commit is contained in:
sgudmand 2017-05-24 09:19:45 -04:00 committed by Max Wilhelm
parent f4c24ee881
commit 49848b2afd

View File

@ -2,8 +2,8 @@
<% @config.each do |key, val| -%> <% @config.each do |key, val| -%>
<%- if val.is_a?( Hash ) -%> <%- if val.is_a?( Hash ) -%>
<<%= key -%>> <<%= key -%>>
<%- val.each do |key, val| -%> <%- val.each do |key2, val2| -%>
<%= key -%> <%= val %> <%= key2 -%> <%= val2 %>
<%- end -%> <%- end -%>
</<%= key %>> </<%= key %>>
<%- else -%> <%- else -%>