From 639cebdcb691de368dc05a352c50046a0dca0ac8 Mon Sep 17 00:00:00 2001 From: Thomas Heinen Date: Tue, 20 Oct 2020 10:46:35 +0200 Subject: Fix LWRP build cache Signed-off-by: Thomas Heinen --- lib/chef/resource/lwrp_base.rb | 4 ++-- 1 file 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 -- cgit v1.2.1