Support for sub_inputs in extra plugins (#184)

Co-authored-by: Michał Lisowski <mlisowski@sentient.ie>
This commit is contained in:
Michał Lisowski
2024-02-28 20:00:49 +01:00
committed by GitHub
parent b5179f4dfe
commit bfe52cd752
2 changed files with 33 additions and 0 deletions

View File

@ -55,3 +55,11 @@
{% endfor %}
{% endfor %}
{% endif %}
{% if item.value.sub_inputs is defined and item.value.sub_inputs is iterable %}
{% for sub_input, config in item.value.sub_inputs.items() %}
[[inputs.{{ item.value.plugin | default(item.key) }}.{{ sub_input }}]]
{% for items in config %}
{{ items }}
{% endfor %}
{% endfor %}
{% endif %}