From a3dc39e898c946c2390908ef90ed35bfcda1a76f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 5 Mar 2011 13:28:09 +0100 Subject: [PATCH] or that there --- modules/resolv/templates/resolv.conf.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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? -- 2.39.2