summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/api_client/registration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/api_client/registration.rb b/lib/chef/api_client/registration.rb
index 34ebd432ac..e52da7b428 100644
--- a/lib/chef/api_client/registration.rb
+++ b/lib/chef/api_client/registration.rb
@@ -104,6 +104,7 @@ class Chef
else # Chef 10
@server_generated_private_key = response["private_key"]
end
+ response
# If it fails and we receive a 400 stating to use the keys endpoint
# then, let's use it.
rescue Net::HTTPServerException => e
@@ -112,7 +113,6 @@ class Chef
else
raise
end
- response
end
def put_data