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'm seeing the _header.erb contents included twice in /etc/freshclam.conf and /etc/sysconfig/freshclam.
I think the problem stems from using ERB.new(...).result(binding) to render the included template directly, instead of scope.function_template(...).
The problem only seems to occur when applying via puppet agent, for some reason using puppet apply on the same catalog doesn't include the header twice.
I've locally found that the replacing the call as in the diff below gets identical and correct behaviour with both puppet apply and puppet agent:
I'm seeing the
_header.erb
contents included twice in /etc/freshclam.conf and /etc/sysconfig/freshclam.I think the problem stems from using ERB.new(...).result(binding) to render the included template directly, instead of scope.function_template(...).
The problem only seems to occur when applying via puppet agent, for some reason using puppet apply on the same catalog doesn't include the header twice.
I've locally found that the replacing the call as in the diff below gets identical and correct behaviour with both puppet apply and puppet agent:
The text was updated successfully, but these errors were encountered: