summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy-dufour <adufour@chef.io>2015-11-18 11:27:45 -0500
committerandy-dufour <adufour@chef.io>2015-11-18 11:28:35 -0500
commit972146c2c85d2259ef994815a8477fc317c11b2e (patch)
tree998f0d28caf1ef6dece920f0a80a67b86f156acf
parentf44468b4e03dc3fb063ffbeeedc0b71ccb0d0de5 (diff)
downloadchef-972146c2c85d2259ef994815a8477fc317c11b2e.tar.gz
Correcting re-registration to pass testsad/reregistration-keysapi
-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