From: Peter Palfrader Date: Sat, 5 Mar 2011 12:28:09 +0000 (+0100) Subject: or that there X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=a3dc39e898c946c2390908ef90ed35bfcda1a76f or that there --- diff --git a/modules/resolv/templates/resolv.conf.erb b/modules/resolv/templates/resolv.conf.erb index 0ebef6c5..f554d941 100644 --- a/modules/resolv/templates/resolv.conf.erb +++ b/modules/resolv/templates/resolv.conf.erb @@ -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?