Skip to content

Commit

Permalink
Remove triple-dash from rendered yaml (DataDog#587)
Browse files Browse the repository at this point in the history
A generated triple dash ("---") caused the logs section of the configuration to be ignored by the Datadog agent.
  • Loading branch information
asenci authored and albertvaka committed Nov 29, 2019
1 parent 7432ec4 commit 4cb86c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/agent-conf.d/mysql.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ instances:

<% end -%>

<%= {'logs'=>@logs}.to_yaml %>
<%= (Array({'logs'=>@logs}.to_yaml.lines))[1..-1].join %>

0 comments on commit 4cb86c1

Please sign in to comment.