Remove for-loop in extra-plugin template, because this is performed by the task itself. Was causing all extra plugin configurations to be written in each sub-configuration file

This commit is contained in:
Emerson Knapp
2017-02-20 20:24:19 -08:00
parent e29aa87c04
commit 641981bfb3

View File

@ -1,6 +1,3 @@
{% if telegraf_plugins_extra is defined and telegraf_plugins_extra is iterable %}
{% for item in telegraf_plugins_extra %}
[[inputs.{{ item.plugin }}]]
{% if item.interval is defined %}
interval = "{{ item.interval }}s"
@ -46,5 +43,3 @@
{{ items }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}