Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove empty brackets from datadog.yaml when datadog_config is empty #107

Merged
merged 2 commits into from
Mar 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions templates/datadog.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ dd_url: {{ datadog_url | default('https://app.datadoghq.com') }}
api_key: {{ datadog_api_key | default('youshouldsetthis') }}
{% endif %}

{% if datadog_config is defined and datadog_config|length > 0 -%}
{{ datadog_config | to_nice_yaml }}
{% endif %}
2 changes: 1 addition & 1 deletion tests/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is an example setup, based on vagrant + virtualbox, that allows to easily r
# Requirements

- vagrant > 2.0.0
- vitrualbox > 5.1.28
- virtualbox > 5.1.28

# Setup

Expand Down