diff options
author | Prajakta Purohit <prajakta@opscode.com> | 2016-06-06 08:52:28 -0700 |
---|---|---|
committer | Prajakta Purohit <prajakta@opscode.com> | 2016-06-07 07:57:48 -0700 |
commit | 9459891e47fff684f4ff304de980b913e58cc119 (patch) | |
tree | ff08ee6dc8f6d60999cc95dc139c84a16d917fad | |
parent | ea15504eb0e8797a435eb8c823e31bdb996a4305 (diff) | |
download | chef-9459891e47fff684f4ff304de980b913e58cc119.tar.gz |
no more missing constants for LWRP class
-rw-r--r-- | lib/chef/provider.rb | 3 | ||||
-rw-r--r-- | lib/chef/resource.rb | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 03b546c09d..483f9923fe 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -444,8 +444,9 @@ class Chef private + @@deprecated_constants = {} def deprecated_constants - @deprecated_constants ||= {} + @@deprecated_constants end end extend DeprecatedLWRPClass diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 2633187690..cd1743103e 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -1542,8 +1542,9 @@ class Chef end end - def self.deprecated_constants - @deprecated_constants ||= {} + @@deprecated_constants = {} + def deprecated_constants + @deprecated_constants end # @api private |