]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
continued fight against templates, 3
authorPeter Palfrader <peter@palfrader.org>
Sat, 5 Mar 2011 12:53:11 +0000 (13:53 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sat, 5 Mar 2011 12:53:11 +0000 (13:53 +0100)
modules/resolv/templates/resolv.conf.erb

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