Changed defined? to has_variable? from ntp.conf template.

This commit is contained in:
Timo Mkinen 2012-01-11 12:06:06 +02:00
parent 974f6ce671
commit 9d069e29fa

View file

@ -26,7 +26,7 @@ server <%= server %>
server 127.127.1.0 server 127.127.1.0
fudge 127.127.1.0 stratum 10 fudge 127.127.1.0 stratum 10
<% end -%> <% end -%>
<% if defined?("ntp_client_networks") -%> <% if has_variable?("ntp_client_networks") -%>
# Restrictions for clients using us as source. # Restrictions for clients using us as source.
<% ntp_client_networks.each do |net| -%> <% ntp_client_networks.each do |net| -%>