From d9f7161f366d9865d36028284e26dc11a23ed7a3 Mon Sep 17 00:00:00 2001 From: Olivier Vielpeau Date: Fri, 31 Mar 2017 18:47:25 -0400 Subject: [PATCH] [datadog.conf] Fix ini format of the file Using the `to_nice_yaml` filter can break the `ini` format of the file. Use manual formatting instead since there's no filter that offers that out-of-the-box. --- templates/datadog.conf.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/datadog.conf.j2 b/templates/datadog.conf.j2 index 4870e5e3..6daf736c 100644 --- a/templates/datadog.conf.j2 +++ b/templates/datadog.conf.j2 @@ -14,12 +14,16 @@ {# These variables are free-style, passed through a hash -#} {% if datadog_config -%} - {{ datadog_config | to_nice_yaml }} +{% for key, value in datadog_config.items() -%} +{{ key }}: {{ value }} +{% endfor -%} {% endif %} {% if datadog_config_ex is defined -%} {% for section, keyvals in datadog_config_ex.items() %} [{{ section }}] -{{ keyvals | to_nice_yaml }} +{% for key, value in keyvals.items() -%} +{{ key }}: {{ value }} +{% endfor -%} {% endfor %} {% endif %}