telegraf-extra-plugin.conf.j2: fix template typo

Related to commend : 3cccb6ba50 (r31366694)

Fix typo added in template `telegraf-extra-plugin.conf.j2`

Also add molecule tests to validate file generated with `telegraf_plugins_extra` option.

The added test template come from `Multiple inputs of the same type` (https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#multiple-inputs-of-the-same-type)
This commit is contained in:
gaelL
2018-11-20 15:50:54 +01:00
parent 09e3ee1505
commit 18f5dd81b9
3 changed files with 19 additions and 1 deletions

View File

@ -6,7 +6,7 @@
{% endif %}
{% if item.value.config is defined and item.value.config is iterable %}
{% for items in item.value.config %}
{% raw %}{{ items }}{% endraw %}}
{{ items }}
{% endfor %}
{% endif %}
{% if item.value.tags is defined and item.value.tags is iterable %}