diff options
author | Thom May <thom@chef.io> | 2016-01-18 15:14:31 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-01-18 15:14:31 +0000 |
commit | 0ef0ab07531ae78cb4052242037227b0fb5365dc (patch) | |
tree | 64100fafb9164d7af2f94475c28a53f65c9b422f /lib/chef/api_client.rb | |
parent | 808fe8b34254c2747d333205f7f7cdb4224cf8aa (diff) | |
download | chef-0ef0ab07531ae78cb4052242037227b0fb5365dc.tar.gz |
add deprecation warnings
Diffstat (limited to 'lib/chef/api_client.rb')
-rw-r--r-- | lib/chef/api_client.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/api_client.rb b/lib/chef/api_client.rb index 9def6199b7..cea9dd8176 100644 --- a/lib/chef/api_client.rb +++ b/lib/chef/api_client.rb @@ -141,6 +141,7 @@ class Chef end def self.json_create(data) + Chef.log_deprecation("Auto inflation of JSON data is deprecated. Please use Chef::ApiClient#from_hash") from_hash(data) end @@ -176,7 +177,7 @@ class Chef if response.kind_of?(Chef::ApiClient) response else - json_create(response) + from_hash(response) end end |