Skip to content

Commit

Permalink
Ensure each server in the remote servers list ends with a newline whe…
Browse files Browse the repository at this point in the history
…n it includes a port
  • Loading branch information
Greig McGill committed Jul 6, 2016
1 parent 6681e71 commit 7362b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/rsyslog.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ $ActionResumeRetryCount -1 # infinite retries if host is down
<% end -%>
<% @log_server_real.each do |server| -%>
<% if server.include? ":" -%>
<%= @source_facilities %> <% if @transport_protocol == 'tcp' -%>@<% end -%>@<%= server -%>
<%= @source_facilities %> <% if @transport_protocol == 'tcp' -%>@<% end -%>@<%= server %>
<% else -%>
<%= @source_facilities %> <% if @transport_protocol == 'tcp' -%>@<% end -%>@<%= server -%>:<%= @log_server_port %>
<% end -%>
Expand Down

0 comments on commit 7362b3d

Please sign in to comment.