Skip to content

Commit b743f92

Browse files
kevin-bowerstruthbk
authored andcommitted
Render port number in mysql.yaml (DataDog#424)
* Fixing port section of mysql template * Remove white space after port
1 parent 882590f commit b743f92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ instances:
1313
<% if instance['password'] and instance['password'] != :undef -%>
1414
pass: <%= instance['password'] %>
1515
<% end -%>
16-
<% if instance['port'] -%>
17-
port: <%= instance['port'] and instance['port'] != :undef %>
16+
<% if instance['port'] and instance['port'] != :undef -%>
17+
port: <%= instance['port'] %>
1818
<% end -%>
1919
<% if instance['sock'] and instance['sock'] != :undef -%>
2020
sock: <%= instance['sock'] %>

0 commit comments

Comments
 (0)