summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-01-17 09:17:40 -0800
committerdanielsdeleo <dan@opscode.com>2013-01-17 11:28:41 -0800
commit909c147ce768bfed57325f4ef584c680fe807dd8 (patch)
tree24cd8ea0eb39b18f060c931b8e4c5667347f2d1e
parent3c43e6e5cfcfc4f3fe564329cdfb55804b3724a7 (diff)
downloadchef-909c147ce768bfed57325f4ef584c680fe807dd8.tar.gz
[CHEF-3771] align info in matched warnings
-rw-r--r--chef/lib/chef/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/resource.rb b/chef/lib/chef/resource.rb
index 2ffc30823b..bebb3a1d82 100644
--- a/chef/lib/chef/resource.rb
+++ b/chef/lib/chef/resource.rb
@@ -267,7 +267,7 @@ F
# to the rescue clause).
Chef::Log.warn("Cloning resource attributes for #{self.to_s} from prior resource (CHEF-3694)")
Chef::Log.warn("Previous #{prior_resource}: #{prior_resource.source_line}") if prior_resource.source_line
- Chef::Log.warn("Current: #{self.source_line}") if self.source_line
+ Chef::Log.warn("Current #{self}: #{self.source_line}") if self.source_line
prior_resource.instance_variables.each do |iv|
unless iv.to_sym == :@source_line || iv.to_sym == :@action || iv.to_sym == :@not_if || iv.to_sym == :@only_if
self.instance_variable_set(iv, prior_resource.instance_variable_get(iv))