opscode/chef — pull request #542 by danielsdeleo (2012-12-14 00:54:12+00:00)
Title: [Chef 3689] (10 stable) Fix client registration when an inflated ApiClient is returned

When registering a client that already exists on the server, and the server is Chef 11, the response includes `json_class` which triggers "class inflation" so the return value of `ApiClient#save` will be an ApiClient instead of a Hash.

Fix the Chef::REST#register method to work in both cases.

Patch also fixes the case that the server returns `"private_key":false` in its response, adds missing whitespace in ApiClient.inspect, and fixes some ruby warnings in Chef::REST