diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-11 17:49:39 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-11 17:49:39 -0800 |
commit | 365064280c93d519fdacbf032c0c21057e5549c9 (patch) | |
tree | 2fa97cf06cf6d9100d40867882bba8ca4c63f3da | |
parent | c69a59cb88d646a81cb8f0c77f0a2a3b4803c02a (diff) | |
parent | f59f66cd27c36cc4fe31c6b8197758b165784f20 (diff) | |
download | chef-365064280c93d519fdacbf032c0c21057e5549c9.tar.gz |
Merge pull request #4693 from nathwill/bugfix/thread-exclusive
remove deprecated Thread.exclusive
-rw-r--r-- | lib/chef/dsl/declare_resource.rb | 4 |
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, |