summaryrefslogtreecommitdiff
path: root/lib/chef/knife/client_create.rb
diff options
context:
space:
mode:
authortylercloke <tylercloke@gmail.com>2015-07-02 13:30:07 -0700
committertylercloke <tylercloke@gmail.com>2015-07-06 14:36:03 -0700
commite1960b315b55fba380bfc3837c7655bbd6dd1a4d (patch)
treed1c95848c947a75350d484309c970a60d3fb9535 /lib/chef/knife/client_create.rb
parent7950b19244fe948619cb0662be5a0044fffe0436 (diff)
downloadchef-e1960b315b55fba380bfc3837c7655bbd6dd1a4d.tar.gz
Remove all the stupid json magic from Chef::ApiClientV1.
Diffstat (limited to 'lib/chef/knife/client_create.rb')
-rw-r--r--lib/chef/knife/client_create.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/client_create.rb b/lib/chef/knife/client_create.rb
index 951457db28..fa9a1a7e32 100644
--- a/lib/chef/knife/client_create.rb
+++ b/lib/chef/knife/client_create.rb
@@ -62,7 +62,7 @@ class Chef
def create_client(client)
# should not be using save :( bad behavior
- client.save
+ Chef::ApiClientV1.from_hash(client).save
end
def run
@@ -93,7 +93,7 @@ class Chef
output = edit_data(client)
final_client = create_client(output)
- ui.info("Created #{output}")
+ ui.info("Created #{final_client}")
# output private_key if one
if final_client.private_key