mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-13 21:50:34 +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:
parent
f4c24ee881
commit
49848b2afd
@ -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 -%>
|
||||||
|
Loading…
Reference in New Issue
Block a user