diff options
author | John Keiser <john@johnkeiser.com> | 2015-05-18 13:47:49 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-05-18 13:59:06 -0700 |
commit | 05b07f669b9a06799e7e20608d1df3e5bbc2853a (patch) | |
tree | be759c79a05c62466d456db014ce165e7098eb75 /lib/chef/resource | |
parent | b64f37e42952caf744e46394dcc28ab7b7916431 (diff) | |
download | chef-05b07f669b9a06799e7e20608d1df3e5bbc2853a.tar.gz |
Fix LWRP instance.to_s to look like normal resources againjk/fix_lwrp_class_name
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/lwrp_base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb index c79c205285..639399e6bb 100644 --- a/lib/chef/resource/lwrp_base.rb +++ b/lib/chef/resource/lwrp_base.rb @@ -62,10 +62,10 @@ class Chef # Respect resource_name set inside the LWRP resource_class.instance_eval do - define_method(:to_s) do + define_singleton_method(:to_s) do "LWRP resource #{resource_name} from cookbook #{cookbook_name}" end - define_method(:inspect) { to_s } + define_singleton_method(:inspect) { to_s } end Chef::Log.debug("Loaded contents of #{filename} into resource #{resource_name} (#{resource_class})") |