diff options
author | Tim Smith <tsmith@chef.io> | 2020-10-20 09:47:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 09:47:21 -0700 |
commit | b1ac2b116a85ad0f75785cd66c46997fe97ae129 (patch) | |
tree | eddb5e8fff8f60e38dce46636a00c16beccc3ccc | |
parent | 22da1bce7cc6b002dc602870a7bc8c4ad6e508d9 (diff) | |
parent | 639cebdcb691de368dc05a352c50046a0dca0ac8 (diff) | |
download | chef-b1ac2b116a85ad0f75785cd66c46997fe97ae129.tar.gz |
Merge pull request #10536 from tecracer-theinen/fix/lwrp-cache
Signed-off-by: Tim Smith <tsmith@chef.io>
-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 cf883d1ee5..2cf891d530 100644 --- a/lib/chef/resource/lwrp_base.rb +++ b/lib/chef/resource/lwrp_base.rb @@ -63,12 +63,12 @@ class Chef Chef::Log.trace("Loaded contents of #{filename} into resource #{resource_name} (#{resource_class})") - LWRPBase.loaded_lwrps[filename] = true - # wire up the default resource name after the class is parsed only if we haven't declared one. # (this ordering is important for MapCollision deprecation warnings) resource_class.provides resource_name.to_sym unless Chef::ResourceResolver.includes_handler?(resource_name.to_sym, self) + LWRPBase.loaded_lwrps[filename] = resource_class + resource_class end |