diff options
author | danielsdeleo <dan@opscode.com> | 2013-02-11 15:10:59 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-02-11 15:10:59 -0800 |
commit | 55e2af4669d325fd88b5862b12ade5cfb6917891 (patch) | |
tree | 46c9d0e4722acc3fdc3665440d63c58bf0e39638 /lib/chef/json_compat.rb | |
parent | 6fc76ddba1b742a91b44f3e74d145d3e338bbafa (diff) | |
download | chef-55e2af4669d325fd88b5862b12ade5cfb6917891.tar.gz |
add fallback deserialization to hash for Resources
Diffstat (limited to 'lib/chef/json_compat.rb')
-rw-r--r-- | lib/chef/json_compat.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/json_compat.rb b/lib/chef/json_compat.rb index 789884bcdf..8ebd16470e 100644 --- a/lib/chef/json_compat.rb +++ b/lib/chef/json_compat.rb @@ -114,6 +114,8 @@ class Chef false when CHEF_RESOURCECOLLECTION Chef::ResourceCollection + when /^Chef::Resource/ + false else raise ArgumentError, "Unsupported `json_class` type '#{json_class}'" end |