From 49f3569f4f07c4f4282ec88bd38a9692c7a32f45 Mon Sep 17 00:00:00 2001 From: Logioniz Date: Fri, 13 Apr 2018 15:22:56 +0500 Subject: [PATCH] fixed object dump in collectd.python --- collectd/files/python.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 %}