diff options
author | tylercloke <tylercloke@gmail.com> | 2015-07-02 11:24:24 -0700 |
---|---|---|
committer | tylercloke <tylercloke@gmail.com> | 2015-07-06 14:36:03 -0700 |
commit | bd9febad0be3c396e5373158615d93ef1e2033a1 (patch) | |
tree | 4d5704f3c11e8f0a74c0c29d57d5969fca1a7cdc /lib/chef/knife/client_create.rb | |
parent | db6ee7b3fedb5763e9108a0254c4201b84e84fef (diff) | |
download | chef-bd9febad0be3c396e5373158615d93ef1e2033a1.tar.gz |
Move ApiClient V1 supported code to Chef::ApiClientV1 and restore Chef::ApiClient.
For backwards compatibility. ApiClientV1 will replace ApiClient when Chef 13 is released.
Updated client_*.rb knife commands to use ApiClientV1.
Diffstat (limited to 'lib/chef/knife/client_create.rb')
-rw-r--r-- | lib/chef/knife/client_create.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/client_create.rb b/lib/chef/knife/client_create.rb index 570c1ee950..951457db28 100644 --- a/lib/chef/knife/client_create.rb +++ b/lib/chef/knife/client_create.rb @@ -23,7 +23,7 @@ class Chef class ClientCreate < Knife deps do - require 'chef/api_client' + require 'chef/api_client_v1' require 'chef/json_compat' end @@ -57,7 +57,7 @@ class Chef banner "knife client create CLIENTNAME (options)" def client - @client_field ||= Chef::ApiClient.new + @client_field ||= Chef::ApiClientV1.new end def create_client(client) |