summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-03-11 17:49:39 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-03-11 17:49:39 -0800
commit365064280c93d519fdacbf032c0c21057e5549c9 (patch)
tree2fa97cf06cf6d9100d40867882bba8ca4c63f3da
parentc69a59cb88d646a81cb8f0c77f0a2a3b4803c02a (diff)
parentf59f66cd27c36cc4fe31c6b8197758b165784f20 (diff)
downloadchef-365064280c93d519fdacbf032c0c21057e5549c9.tar.gz
Merge pull request #4693 from nathwill/bugfix/thread-exclusive
remove deprecated Thread.exclusive
-rw-r--r--lib/chef/dsl/declare_resource.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/dsl/declare_resource.rb b/lib/chef/dsl/declare_resource.rb
index 9a59859d5a..e57bc0f4c4 100644
--- a/lib/chef/dsl/declare_resource.rb
+++ b/lib/chef/dsl/declare_resource.rb
@@ -88,9 +88,7 @@ class Chef
#
def build_resource(type, name, created_at = nil, run_context: self.run_context, &resource_attrs_block)
created_at ||= caller[0]
- Thread.exclusive do
- require "chef/resource_builder" unless defined?(Chef::ResourceBuilder)
- end
+ require "chef/resource_builder" unless defined?(Chef::ResourceBuilder)
Chef::ResourceBuilder.new(
type: type,