Merge pull request #74 from dj-wasabi/move-to-json-to-to_json

Renamed the tojson to to_json
This commit is contained in:
Werner Dijkerman
2018-12-11 20:30:04 +01:00
committed by GitHub
3 changed files with 6 additions and 3 deletions

View File

@ -42,9 +42,11 @@ platforms:
networks:
- name: telegraf
- name: telegraf-opensuse
image: reszelaz/leap-systemd
image: wdijkerman/molecule-systemd-leap
privileged: True
command: /sbin/init
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
groups:
- telegraf
networks:

View File

@ -24,6 +24,7 @@
repo: "http://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Factory/"
name: The Go Programming Language (openSUSE_Factory)
state: present
runrefresh: True
auto_import_keys: True
become: yes

View File

@ -97,10 +97,10 @@
{% if item.objects is defined and item.objects is iterable %}
{% for object in item.objects %}
[[inputs.{{ item.plugin }}.object]]
ObjectName = {{ object.name | tojson }}
ObjectName = {{ object.name | to_json }}
Instances = {{ object.instances | 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 }}
{% endfor %}
{% endif %}