summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBryan McLellan <btm@opscode.com>2013-02-15 12:49:18 -0800
committerBryan McLellan <btm@opscode.com>2013-02-26 11:02:04 -0800
commit5b1d6533ea3417dcc9c6a0849b60034ac2eadd9d (patch)
treedea4a39a1fb91525a6a1d2d13154e62a138cb2f8 /lib
parent8a3c33fb07be7a10366c9e3aa688b53d502208ca (diff)
downloadchef-5b1d6533ea3417dcc9c6a0849b60034ac2eadd9d.tar.gz
CHEF-3895: Add Chef::Checksum to JSON class hack
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/json_compat.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/json_compat.rb b/lib/chef/json_compat.rb
index e8f8a75162..e4795cfd7e 100644
--- a/lib/chef/json_compat.rb
+++ b/lib/chef/json_compat.rb
@@ -27,6 +27,7 @@ class Chef
JSON_CLASS = "json_class".freeze
CHEF_APICLIENT = "Chef::ApiClient".freeze
+ CHEF_CHECKSUM = "Chef::Checksum".freeze
CHEF_COOKBOOKVERSION = "Chef::CookbookVersion".freeze
CHEF_DATABAG = "Chef::DataBag".freeze
CHEF_DATABAGITEM = "Chef::DataBagItem".freeze
@@ -114,6 +115,8 @@ class Chef
case json_class
when CHEF_APICLIENT
Chef::ApiClient
+ when CHEF_CHECKSUM
+ Chef::Checksum
when CHEF_COOKBOOKVERSION
Chef::CookbookVersion
when CHEF_DATABAG