Allow to set boolean parameter `follow_redirects`
Change-Id: I3f41b2c4917618d33d7320872feca85c003a4c24
diff --git a/telegraf/files/input/http_response.conf b/telegraf/files/input/http_response.conf
index 09307e3..954698c 100644
--- a/telegraf/files/input/http_response.conf
+++ b/telegraf/files/input/http_response.conf
@@ -5,7 +5,7 @@
[[inputs.http_response.checks]]
name = "{{ endpoint }}"
{%- for parameter_name, parameter_value in parameters.iteritems() %}
- {{ parameter_name }} = "{{ parameter_value }}"
+ {{ parameter_name }} = {%- if parameter_name == "follow_redirects" %} {{ parameter_value }}{%- else %} "{{ parameter_value }}"{%- endif %}
{%- endfor %}
{%- endif %}
{%- endfor %}