From f156567a335c6b6bfe3ea578ad73b5c7ae707a02 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Wed, 1 Dec 2010 12:33:08 +0100 Subject: dhcp - updated template for debian configuration --- templates/dhcpd.conf.debian.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/dhcpd.conf.debian.erb b/templates/dhcpd.conf.debian.erb index 7606c0c..ee95bee 100644 --- a/templates/dhcpd.conf.debian.erb +++ b/templates/dhcpd.conf.debian.erb @@ -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 -- cgit v1.2.3