]> gitweb.fluxo.info Git - puppet-dhcp.git/commitdiff
Handle the whole log_facility block together
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Mar 2016 14:58:46 +0000 (11:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Mar 2016 14:58:46 +0000 (11:58 -0300)
templates/dhcpd.conf.debian.erb

index 64318c820c13fe49a70a2de9a1a59324060ee81f..f193fab54c81311d75244b7b3665a448c024f2ec 100644 (file)
@@ -14,7 +14,9 @@ ddns-update-style <%= @ddns_update %>;
 <%= @opts.join(";\n") %>;
 <% end -%>
 
+<% if @log_facility != '' -%>
 # Use this to send dhcp log messages to a different log file (you also
 # have to hack syslog.conf to complete the redirection).
-<% unless @log_facility != '' -%>log-facility <%= @log_facility %>;<%- end -%>
+log-facility <%= @log_facility %>;
+<%- end -%>