]> gitweb.fluxo.info Git - puppet-dhcp.git/commitdiff
dhcp - updated template for debian configuration
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Wed, 1 Dec 2010 11:33:08 +0000 (12:33 +0100)
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Wed, 1 Dec 2010 11:33:08 +0000 (12:33 +0100)
templates/dhcpd.conf.debian.erb

index 7606c0c6d034b49cf09e20e9e209791cd3f44c11..ee95bee4fd1b65509660eb96515e9888776aa48f 100644 (file)
@@ -18,8 +18,8 @@ authoritative;
 #authoritative;
 <% end -%>
 
-<% if dhcpd_opts and not dhcpd_opts.empty? -%>
-<%= dhcpd_opts.collect! {|i| "#{i}" }.join(";\n") %>
+<% if has_variable?('dhcpd_opts') and not dhcpd_opts.empty? -%>
+<%= dhcpd_opts.join(";\n") %>
 <% end -%>
 
 # Use this to send dhcp log messages to a different log file (you also