diff options
author | Jordan Running <jr@getchef.com> | 2016-02-18 15:43:56 -0600 |
---|---|---|
committer | Jordan Running <jr@getchef.com> | 2016-02-24 14:16:30 -0600 |
commit | b0971ce66e69cefd6e148a648f01667c0146e577 (patch) | |
tree | 87f2d5b56f1fe50f27d69150133f5201a12ae527 /lib/chef_zero/endpoints/rest_object_endpoint.rb | |
parent | 2469894eab12f24893916b571a981e082dfe97df (diff) | |
download | chef-zero-jr/pedant-keys-2.tar.gz |
Move default keys logic into ActorDefaultKeyEndpoint; fix #putjr/pedant-keys-2
Diffstat (limited to 'lib/chef_zero/endpoints/rest_object_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/rest_object_endpoint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/rest_object_endpoint.rb b/lib/chef_zero/endpoints/rest_object_endpoint.rb index 95a3122..7e839c0 100644 --- a/lib/chef_zero/endpoints/rest_object_endpoint.rb +++ b/lib/chef_zero/endpoints/rest_object_endpoint.rb @@ -63,7 +63,7 @@ module ChefZero # Get the value of the (first existing) identity key from the request body or nil def identity_key_value(request) - request_json = FFI_Yajl::Parser.parse(request.body, :create_additions => false) + request_json = parse_json(request.body) identity_keys.map { |k| request_json[k] }.compact.first end |