]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/resolv/templates/resolv.conf.erb
or that there
[dsa-puppet.git] / 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?