From 742b9c32cd0eabdc05044327ead70ac864924017 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 5 Mar 2011 13:53:11 +0100 Subject: [PATCH] continued fight against templates, 3 --- modules/resolv/templates/resolv.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/resolv/templates/resolv.conf.erb b/modules/resolv/templates/resolv.conf.erb index e7ecf536..ac15f478 100644 --- a/modules/resolv/templates/resolv.conf.erb +++ b/modules/resolv/templates/resolv.conf.erb @@ -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? -- 2.39.2