From 075469c3edc95581090f857aa35ee0074d7e4a61 Mon Sep 17 00:00:00 2001 From: James Casey Date: Tue, 18 Feb 2014 13:29:08 -0800 Subject: Delegate ApiClient.load to ApiClient.json_create This means the validator/public_key/admin fields of the ApiClient object now get set properly --- lib/chef/api_client.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/chef') diff --git a/lib/chef/api_client.rb b/lib/chef/api_client.rb index 66cbd3f30e..7b7fd99ff7 100644 --- a/lib/chef/api_client.rb +++ b/lib/chef/api_client.rb @@ -162,9 +162,7 @@ class Chef if response.kind_of?(Chef::ApiClient) response else - client = Chef::ApiClient.new - client.name(response['clientname']) - client + json_create(response) end end -- cgit v1.2.1