[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.4-89-gcbbd363
James Turnbull
james at lovedthanlost.net
Tue May 18 09:04:41 UTC 2010
The following commit has been merged in the upstream branch:
commit 44f6d64876f60cbed27e79ba0c64377ebcb9a07e
Author: James Turnbull <james at lovedthanlost.net>
Date: Sat Apr 24 02:47:52 2010 +1000
Partial fix to #2837 - changed warning message to debug
diff --git a/lib/puppet/network/format_handler.rb b/lib/puppet/network/format_handler.rb
index ea8cf35..dce1bca 100644
--- a/lib/puppet/network/format_handler.rb
+++ b/lib/puppet/network/format_handler.rb
@@ -142,7 +142,7 @@ module Puppet::Network::FormatHandler
list.delete(preferred_format)
list.unshift(preferred_format)
else
- Puppet.warning "Value of 'preferred_serialization_format' (#{preferred_format}) is invalid for #{friendly_name}, using default (#{list.first})"
+ Puppet.debug "Value of 'preferred_serialization_format' (#{preferred_format}) is invalid for #{friendly_name}, using default (#{list.first})"
end
list
end
diff --git a/spec/unit/network/format_handler.rb b/spec/unit/network/format_handler.rb
index 110effe..7fb065b 100755
--- a/spec/unit/network/format_handler.rb
+++ b/spec/unit/network/format_handler.rb
@@ -73,8 +73,9 @@ describe Puppet::Network::FormatHandler do
it "should still return the default format first" do
FormatTester.supported_formats.should == [:two, :one]
end
- it "should log a warning" do
- Puppet.expects(:warning)
+ it "should log a debug message" do
+ Puppet.expects(:debug).with("Value of 'preferred_serialization_format' (unsupported) is invalid for FormatTester, using default (two)")
+ Puppet.expects(:debug).with("FormatTester supports formats: one two; using two")
FormatTester.supported_formats
end
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list