From 63517e4cc47306d8f990b6026b1210921008102a Mon Sep 17 00:00:00 2001 From: Simon Clausen Date: Thu, 30 Jun 2016 10:10:36 +0200 Subject: [PATCH] Don't wrap numbers in quotes --- logstash/map.jinja | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/logstash/map.jinja b/logstash/map.jinja index 9fcd65a..373c539 100644 --- a/logstash/map.jinja +++ b/logstash/map.jinja @@ -32,8 +32,10 @@ {%- if key == 'plugin_name' or key == 'cond' %} {#pass#} {%- elif value is sameas True or value is sameas False %} {{- output_indented(col, (key + ' => ' + value|string|lower)) }} - {%- elif value is string or value is number %} + {%- elif value is string %} {{- output_indented(col, (key + ' => "' + value|string + '"')) }} + {%- elif value is number %} + {{- output_indented(col, (key + ' => ' + value|string)) }} {%- elif value is mapping %} {{- output_indented(col, (key + ' => {')) }} {%- set col = col + logstash.indent %}