not really know what I am doing
[mirror/dsa-puppet.git] / modules / resolv / templates / resolv.conf.erb
index e395675..67f8d64 100644 (file)
@@ -26,7 +26,7 @@ if defined?(unbound) and unbound and unbound == "true"
 else
   if nameservers.empty?
     #raise Puppet::ParseError, "Something has gone wrong writing resolv.conf.  No nameservers to use!"
-    function_warning("Something has gone wrong writing resolv.conf.  No nameservers to use - using google's!")
+    scope.function_warning("Something has gone wrong writing resolv.conf.  No nameservers to use - using google's!")
     nameservers << '8.8.8.8'
     nameservers << '8.8.4.4'
   end