]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
or that there
authorPeter Palfrader <peter@palfrader.org>
Sat, 5 Mar 2011 12:28:09 +0000 (13:28 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sat, 5 Mar 2011 12:28:09 +0000 (13:28 +0100)
modules/resolv/templates/resolv.conf.erb

index 0ebef6c5b81e678a826f09b9332339726219d12e..f554d9412ffd129312bddf0cb3140578dc11b8fc 100644 (file)
@@ -21,8 +21,7 @@ searchpaths << "debian.org"
 resolvconf  = ''
 resolvconf += "search " + searchpaths.join(" ") + "\n"
 
-unbound = lookupvar('unbound')
-if unbound and unbound == "true"
+if defined?(unbound) and unbound and unbound == "true"
   resolvconf += "nameserver 127.0.0.1\n"
 else
   if nameservers.empty?