diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-02 15:50:36 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-02 15:51:33 -0700 |
commit | 9f9ceec96a463099c7a724e6097a96a1171d9838 (patch) | |
tree | 38783d62679989b490865d591b066886b382190c /lib/chef_zero/endpoints/acl_endpoint.rb | |
parent | c3a79237eb34266d948bb780b36f7865a9322544 (diff) | |
download | chef-zero-9f9ceec96a463099c7a724e6097a96a1171d9838.tar.gz |
remove create additions flaglcg/remove-create-additions
FFI_Yajl has never implemented this flag
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef_zero/endpoints/acl_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/acl_endpoint.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/endpoints/acl_endpoint.rb b/lib/chef_zero/endpoints/acl_endpoint.rb index 366bb89..527ba17 100644 --- a/lib/chef_zero/endpoints/acl_endpoint.rb +++ b/lib/chef_zero/endpoints/acl_endpoint.rb @@ -28,8 +28,8 @@ module ChefZero def put(request) path, perm = validate_request(request) - acls = FFI_Yajl::Parser.parse(get_data(request, path), :create_additions => false) - acls[perm] = FFI_Yajl::Parser.parse(request.body, :create_additions => false)[perm] + acls = FFI_Yajl::Parser.parse(get_data(request, path)) + acls[perm] = FFI_Yajl::Parser.parse(request.body)[perm] set_data(request, path, FFI_Yajl::Encoder.encode(acls, :pretty => true)) json_response(200, { "uri" => "#{build_uri(request.base_uri, request.rest_path)}" }) end |