summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Heinen <theinen@tecracer.de>2020-10-20 10:46:35 +0200
committerThomas Heinen <theinen@tecracer.de>2020-10-20 10:47:48 +0200
commit639cebdcb691de368dc05a352c50046a0dca0ac8 (patch)
treeeddb5e8fff8f60e38dce46636a00c16beccc3ccc
parent22da1bce7cc6b002dc602870a7bc8c4ad6e508d9 (diff)
downloadchef-639cebdcb691de368dc05a352c50046a0dca0ac8.tar.gz
Fix LWRP build cache
Signed-off-by: Thomas Heinen <theinen@tecracer.de>
-rw-r--r--lib/chef/resource/lwrp_base.rb4
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