From 8b7a7c7f6da967bfb580de88b707d84c1a3a6578 Mon Sep 17 00:00:00 2001 From: Maxime Mouial Date: Fri, 23 Mar 2018 13:58:03 -0400 Subject: [PATCH] Fix datadog.yaml template when used with an empty conf --- templates/datadog.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/datadog.yaml.j2 b/templates/datadog.yaml.j2 index 2eeba6cb..e896e268 100644 --- a/templates/datadog.yaml.j2 +++ b/templates/datadog.yaml.j2 @@ -8,4 +8,6 @@ dd_url: {{ datadog_url | default('https://app.datadoghq.com') }} api_key: {{ datadog_api_key | default('youshouldsetthis') }} {% endif %} +{% if datadog_config -%} {{ datadog_config | to_nice_yaml }} +{% endif %}