From f8b5a79c6e2bdc02e6305eefab311e67b510d9dc Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 4 Feb 2015 15:09:58 -0800 Subject: fix warning output When this got extracted into its own class `self` no longer outputs the resource which is being built. --- lib/chef/resource_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/resource_builder.rb b/lib/chef/resource_builder.rb index f700da53c9..e076856479 100644 --- a/lib/chef/resource_builder.rb +++ b/lib/chef/resource_builder.rb @@ -114,7 +114,7 @@ class Chef end def emit_cloned_resource_warning - Chef::Log.warn("Cloning resource attributes for #{self} from prior resource (CHEF-3694)") + Chef::Log.warn("Cloning resource attributes for #{resource} from prior resource (CHEF-3694)") Chef::Log.warn("Previous #{prior_resource}: #{prior_resource.source_line}") if prior_resource.source_line Chef::Log.warn("Current #{resource}: #{resource.source_line}") if resource.source_line end -- cgit v1.2.1