diff --git a/collectd/files/python.conf b/collectd/files/python.conf index af3032d..2da844f 100644 --- a/collectd/files/python.conf +++ b/collectd/files/python.conf @@ -22,7 +22,13 @@ {%- if array['variables'] is defined %} {%- for key, value in array['variables'].items() | sort %} - {{ key }} {{ value }} + {%- if value is string or value is number %} + {{ key }} {{ value }} + {%- elif value is sequence %} + {{ key }} {{ value | json() }} + {%- else %} + {{ key }} {{ value }} + {%- endif %} {%- endfor %} {%- endif %}