[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35
Markus Roberts
Markus at reality.com
Wed Jul 14 10:37:08 UTC 2010
The following commit has been merged in the upstream branch:
commit 700970475c01f60490f6d05e7a94275ede704c37
Author: Markus Roberts <Markus at reality.com>
Date: Fri Jul 9 17:12:58 2010 -0700
Fix for #4117 "Storing newly-audited value" messages
They're semantically info, not notifications, and now are handled as such.
diff --git a/lib/puppet/transaction/resource_harness.rb b/lib/puppet/transaction/resource_harness.rb
index 848ba7b..e42b096 100644
--- a/lib/puppet/transaction/resource_harness.rb
+++ b/lib/puppet/transaction/resource_harness.rb
@@ -74,7 +74,7 @@ class Puppet::Transaction::ResourceHarness
resource[param] = value
audited << param
else
- resource.notice "Storing newly-audited value #{current[param]} for #{param}"
+ resource.info "Storing newly-audited value #{current[param]} for #{param}"
cache(resource, param, current[param])
end
end
diff --git a/spec/unit/transaction/resource_harness_spec.rb b/spec/unit/transaction/resource_harness_spec.rb
index cbb796c..953b509 100755
--- a/spec/unit/transaction/resource_harness_spec.rb
+++ b/spec/unit/transaction/resource_harness_spec.rb
@@ -50,7 +50,7 @@ describe Puppet::Transaction::ResourceHarness do
end
it "should cache and log the current value if no cached values are present" do
- @resource.expects(:notice)
+ @resource.expects(:info)
@harness.copy_audited_parameters(@resource, {:mode => "755"}).should == []
@harness.cached(@resource, :mode).should == "755"
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list