diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-12-10 13:53:50 -0800 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-12-10 13:55:15 -0800 |
commit | ee09c0c5ef071de3b2c850ebc5ef0be20421e327 (patch) | |
tree | fc013e06cb8823863fbc7977b221fa4a4f21a9aa | |
parent | 62cfa9d5ec66774c94a9c873f14aa891199db1f4 (diff) | |
download | chef-ee09c0c5ef071de3b2c850ebc5ef0be20421e327.tar.gz |
Merge pull request #2610 from opscode/sersut/circular-dep-fix
Resolve the circular dependency between ProviderResolver and Resource.
Conflicts:
CHANGELOG.md
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | lib/chef/resource.rb | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c55ad8aa57..5de9686e7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ ## 12.0.2 (Unreleased) * [Issue 2578](https://github.com/opscode/chef/issues/2578) Check that `installed` is not empty for `keg_only` formula in Homebrew provider +* [Issue 2609](https://github.com/opscode/chef/issues/2609) Resolve the circular dependency between ProviderResolver and Resource. ## 12.0.1 + * [Issue 2552](https://github.com/opscode/chef/issues/2552) Create constant for LWRP before calling `provides` * [Issue 2545](https://github.com/opscode/chef/issues/2545) `path` attribute of `execute` resource is restored to provide backwards compatibility with Chef 11. * [Issue 2565](https://github.com/opscode/chef/issues/2565) Fix `Chef::Knife::Core::BootstrapContext` constructor for knife-windows compat. diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 8d964da66d..d2718c859e 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -29,7 +29,6 @@ require 'chef/resource/conditional_action_not_nothing' require 'chef/resource_collection' require 'chef/node_map' require 'chef/node' -require 'chef/provider_resolver' require 'chef/platform' require 'chef/mixin/deprecation' @@ -833,3 +832,7 @@ F end end end + +# We require this at the BOTTOM of this file to avoid circular requires (it is used +# at runtime but not load time) +require 'chef/provider_resolver' |