summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-04 15:09:58 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-04 15:09:58 -0800
commitf8b5a79c6e2bdc02e6305eefab311e67b510d9dc (patch)
treee7d6e0c4888cf3b5954a43a748445d8bcb9a92b7
parent370422ae15a82f4354d047a5d85b49e8797a347e (diff)
downloadchef-lcg/warnfix.tar.gz
fix warning outputlcg/warnfix
When this got extracted into its own class `self` no longer outputs the resource which is being built.
-rw-r--r--lib/chef/resource_builder.rb2
1 files changed, 1 insertions, 1 deletions
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