summaryrefslogtreecommitdiff
path: root/lib/chef/knife/client_create.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/client_create.rb')
-rw-r--r--lib/chef/knife/client_create.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/client_create.rb b/lib/chef/knife/client_create.rb
index 5b5078b574..285254aef0 100644
--- a/lib/chef/knife/client_create.rb
+++ b/lib/chef/knife/client_create.rb
@@ -61,7 +61,7 @@ class Chef
# We only get a private_key on client creation, not on client update.
if client['private_key']
ui.info("Created #{output}")
-
+
if config[:file]
File.open(config[:file], "w") do |f|
f.print(client['private_key'])