From: Peter Palfrader Date: Sat, 5 Mar 2011 12:38:12 +0000 (+0100) Subject: stderr is dev/null. maybe this will do? X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=0f2f72fcff88606d5bc2d5e2c338917503ed3746 stderr is dev/null. maybe this will do? --- diff --git a/modules/resolv/templates/resolv.conf.erb b/modules/resolv/templates/resolv.conf.erb index 1ce76cd8..e3956756 100644 --- a/modules/resolv/templates/resolv.conf.erb +++ b/modules/resolv/templates/resolv.conf.erb @@ -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