diff options
author | Thom May <thom@may.lt> | 2016-09-06 15:35:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 15:35:37 +0100 |
commit | 92e1e6eae3d8d842cf1eede56124ebd3ba9945c9 (patch) | |
tree | 38783d62679989b490865d591b066886b382190c /lib/chef_zero/endpoints/data_bags_endpoint.rb | |
parent | c3a79237eb34266d948bb780b36f7865a9322544 (diff) | |
parent | 9f9ceec96a463099c7a724e6097a96a1171d9838 (diff) | |
download | chef-zero-92e1e6eae3d8d842cf1eede56124ebd3ba9945c9.tar.gz |
Merge pull request #242 from chef/lcg/remove-create-additions
Remove create additions flag
Diffstat (limited to 'lib/chef_zero/endpoints/data_bags_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/data_bags_endpoint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/data_bags_endpoint.rb b/lib/chef_zero/endpoints/data_bags_endpoint.rb index 03791b0..0ddb34e 100644 --- a/lib/chef_zero/endpoints/data_bags_endpoint.rb +++ b/lib/chef_zero/endpoints/data_bags_endpoint.rb @@ -7,7 +7,7 @@ module ChefZero class DataBagsEndpoint < RestListEndpoint def post(request) contents = request.body - json = FFI_Yajl::Parser.parse(contents, :create_additions => false) + json = FFI_Yajl::Parser.parse(contents) name = identity_keys.map { |k| json[k] }.select { |v| v }.first if name.nil? error(400, "Must specify #{identity_keys.map { |k| k.inspect }.join(' or ')} in JSON") |