From 5b87dba681cc0aa3144dca59216223bb16d10a4a Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 3 Aug 2009 16:14:26 -0700 Subject: Logs now assume resource params have metadata We were previously not assuming they had it, because I figured there were just a couple that didn't. On closer inspection, none of them did. The previous commit fixed that, so this commit fixes the assumption. Signed-off-by: Luke Kanies --- lib/puppet/util/log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet') diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb index d6d3ba018..25c4677fb 100644 --- a/lib/puppet/util/log.rb +++ b/lib/puppet/util/log.rb @@ -537,7 +537,7 @@ class Puppet::Util::Log source.tags.each { |t| tag(t) } [:file, :line, :version].each do |param| - next unless source.respond_to?(param) and value = source.send(param) + next unless value = source.send(param) send(param.to_s + "=", value) end end -- cgit