summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/rest_object_endpoint.rb
diff options
context:
space:
mode:
authorJordan Running <jr@getchef.com>2016-02-18 15:43:56 -0600
committerJordan Running <jr@getchef.com>2016-02-24 14:16:30 -0600
commitb0971ce66e69cefd6e148a648f01667c0146e577 (patch)
tree87f2d5b56f1fe50f27d69150133f5201a12ae527 /lib/chef_zero/endpoints/rest_object_endpoint.rb
parent2469894eab12f24893916b571a981e082dfe97df (diff)
downloadchef-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.rb2
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