From 55e2af4669d325fd88b5862b12ade5cfb6917891 Mon Sep 17 00:00:00 2001 From: danielsdeleo Date: Mon, 11 Feb 2013 15:10:59 -0800 Subject: add fallback deserialization to hash for Resources --- lib/chef/json_compat.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 -- cgit v1.2.1