Skip to content

Commit 132e6d9

Browse files
asencialbertvaka
authored andcommitted
Remove triple-dash from rendered yaml (#587)
A generated triple dash ("---") caused the logs section of the configuration to be ignored by the Datadog agent.
1 parent 54b2270 commit 132e6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/agent-conf.d/mysql.yaml.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ instances:
5252

5353
<% end -%>
5454

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

0 commit comments

Comments
 (0)