diff options
author | James Casey <james@opscode.com> | 2014-02-18 13:29:08 -0800 |
---|---|---|
committer | James Casey <james@opscode.com> | 2014-02-18 13:59:03 -0800 |
commit | 075469c3edc95581090f857aa35ee0074d7e4a61 (patch) | |
tree | 92102bd09ce9744970751a511290dee2d524fd63 /lib/chef/api_client.rb | |
parent | dc47d5ab78ca3687afb00a0182f458db3f5131de (diff) | |
download | chef-075469c3edc95581090f857aa35ee0074d7e4a61.tar.gz |
Delegate ApiClient.load to ApiClient.json_create
This means the validator/public_key/admin fields of the ApiClient
object now get set properly
Diffstat (limited to 'lib/chef/api_client.rb')
-rw-r--r-- | lib/chef/api_client.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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 |