Skip to content

Commit

Permalink
Fix condition for inserting blank line before refclocks
Browse files Browse the repository at this point in the history
The test `if $chrony::refclocks` was wrong, resulting in a blank line when $refclocks is an
empty array. This tests instead for emptiness.
  • Loading branch information
chrekh committed Jul 13, 2020
1 parent 279cf32 commit a8dadce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/chrony.conf.epp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ logdir /var/log/chrony
<% if $chrony::log_options { -%>
log <%= $chrony::log_options %>
<% } -%>
<% if $chrony::refclocks { -%>
<% unless $chrony::refclocks.empty { -%>

<% $chrony::refclocks.each |$driver| { -%>
refclock <%= $driver.flatten.join(' ') %>
Expand Down

0 comments on commit a8dadce

Please sign in to comment.