Skip to content

Commit

Permalink
Merge pull request #345 from jcpunk/steptickers
Browse files Browse the repository at this point in the history
MODULES-3898 - ntp step-tickers should honor preferred servers
  • Loading branch information
DavidS authored Oct 5, 2016
2 parents 5f83666 + db51ea8 commit 6eac637
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/step-tickers.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# List of NTP servers used by the ntpdate service.

<% if @preferred_servers.empty? -%>
<% [@servers].flatten.each do |server| -%>
<%= server %>
<% end -%>
<% else -%>
<% [@servers].flatten.each do |server| -%>
<% if @preferred_servers.include?(server) -%>
<%= server %>
<% end -%>
<% end -%>
<% end -%>

0 comments on commit 6eac637

Please sign in to comment.