summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2017-03-14 16:22:51 +0000
committerThom May <thom@chef.io>2017-03-14 16:22:51 +0000
commitb0cb79f89d7ed5efafd81e01d28dcce1014f41b3 (patch)
treee3b79811ce7c78e90343e0f81241136777ca67b8 /lib/chef/knife
parent12c54fbf916fcd4cd80cab3f3598a03da7d96fd1 (diff)
downloadchef-b0cb79f89d7ed5efafd81e01d28dcce1014f41b3.tar.gz
Kill JSON auto inflate with firetm/remove_json_autoinflate
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r--lib/chef/knife/core/ui.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/knife/core/ui.rb b/lib/chef/knife/core/ui.rb
index 1fc6d3d0e2..d809a8fc45 100644
--- a/lib/chef/knife/core/ui.rb
+++ b/lib/chef/knife/core/ui.rb
@@ -180,8 +180,7 @@ class Chef
if parse_output
if object_class.nil?
- Chef.deprecated(:json_auto_inflate, "Auto inflation of JSON data is deprecated. Please pass in the class to inflate or use #edit_hash")
- Chef::JSONCompat.from_json(output)
+ raise ArgumentError, "Please pass in the object class to hydrate or use #edit_hash"
else
object_class.from_hash(Chef::JSONCompat.parse(output))
end