cleanup that should not change anything
authorPeter Palfrader <peter@palfrader.org>
Mon, 15 Apr 2013 07:32:04 +0000 (09:32 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 15 Apr 2013 07:32:04 +0000 (09:32 +0200)
modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb
modules/unbound/templates/unbound.conf.erb

index 745ad05..303dfd2 100644 (file)
@@ -40,7 +40,7 @@ module Puppet::Parser::Functions
       end
 
       ns = function_hiera('nameservers')
-      if not ns or ns.empty?
+      if ns.empty?
         # no nameservers known for this hoster
         nodeinfo['misc']['resolver-recursive'] = true
 
index 17683a8..d919f38 100644 (file)
@@ -45,7 +45,7 @@ server:
        auto-trust-anchor-file: "/var/lib/unbound/debian.org.key"
 
 # recursive: <%= @is_recursor ? "y" : "n" %>
-<% if (not @is_recursor) and (not @ns.empty?) -%>
+<% if not @is_recursor -%>
 forward-zone:
        name: "."
 <% @ns.to_a.flatten.each do |nms| -%>