Renamed the tojson to to_json

This commit is contained in:
Werner Dijkerman
2018-12-11 15:48:08 +01:00
parent 1d03fa09ac
commit 1cffd3dbc0

View File

@ -97,10 +97,10 @@
{% if item.objects is defined and item.objects is iterable %} {% if item.objects is defined and item.objects is iterable %}
{% for object in item.objects %} {% for object in item.objects %}
[[inputs.{{ item.plugin }}.object]] [[inputs.{{ item.plugin }}.object]]
ObjectName = {{ object.name | tojson }} ObjectName = {{ object.name | to_json }}
Instances = {{ object.instances | default(["*"]) }} Instances = {{ object.instances | default(["*"]) }}
Counters = {{ object.counters | default(["*"]) }} Counters = {{ object.counters | default(["*"]) }}
Measurement = {{ object.measurement | default("win_perf_counters") | tojson }} Measurement = {{ object.measurement | default("win_perf_counters") | to_json }}
IncludeTotal = {{ object.total | default(false) | string | lower }} IncludeTotal = {{ object.total | default(false) | string | lower }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}