summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-01-21 11:14:49 +0000
committerThom May <thom@may.lt>2016-01-21 11:14:49 +0000
commitb2287acca8df58079205979ab2ba956d0e281fe5 (patch)
tree471e241d05effbe9d2b470588c1ff0f647952741 /lib/chef/knife
parent38e4b8ad4a1d701878595c7822636f3cbb7f7af9 (diff)
parent3458740dc59959e0eaa88543883756d041435d56 (diff)
downloadchef-b2287acca8df58079205979ab2ba956d0e281fe5.tar.gz
Merge pull request #4423 from chef/tm/rest_deprecation
Add deprecation warnings to Chef::REST and all json_creates
Diffstat (limited to 'lib/chef/knife')
-rw-r--r--lib/chef/knife/core/object_loader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/object_loader.rb b/lib/chef/knife/core/object_loader.rb
index 69c2428bd4..063c192728 100644
--- a/lib/chef/knife/core/object_loader.rb
+++ b/lib/chef/knife/core/object_loader.rb
@@ -93,7 +93,7 @@ class Chef
if @klass == Chef::DataBagItem
r
else
- @klass.json_create(r)
+ @klass.from_hash(r)
end
when /\.rb$/
r = klass.new