]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/resolv/templates/resolv.conf.erb
stderr is dev/null. maybe this will do?
[dsa-puppet.git] / modules / resolv / templates / resolv.conf.erb
index 1ce76cd880f0cb071d83d511b1d919621df1a207..e3956756fc1b625728d465b8e1753289760cd7da 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!"
-    STDERR.puts "Something has gone wrong writing resolv.conf.  No nameservers to use - using google's!"
+    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