diff options
author | danielsdeleo <dan@opscode.com> | 2013-01-17 09:17:40 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-01-17 11:28:41 -0800 |
commit | 909c147ce768bfed57325f4ef584c680fe807dd8 (patch) | |
tree | 24cd8ea0eb39b18f060c931b8e4c5667347f2d1e | |
parent | 3c43e6e5cfcfc4f3fe564329cdfb55804b3724a7 (diff) | |
download | chef-909c147ce768bfed57325f4ef584c680fe807dd8.tar.gz |
[CHEF-3771] align info in matched warnings
-rw-r--r-- | chef/lib/chef/resource.rb | 2 |
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)) |