From c3a79237eb34266d948bb780b36f7865a9322544 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Fri, 2 Sep 2016 15:51:14 -0700 Subject: Revert "remove create additions flag" This reverts commit c674dfeacf773579a2eb56cb3c02428268452b50. --- lib/chef_zero/endpoints/role_endpoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef_zero/endpoints/role_endpoint.rb') diff --git a/lib/chef_zero/endpoints/role_endpoint.rb b/lib/chef_zero/endpoints/role_endpoint.rb index d4bc4cd..654afca 100644 --- a/lib/chef_zero/endpoints/role_endpoint.rb +++ b/lib/chef_zero/endpoints/role_endpoint.rb @@ -7,7 +7,7 @@ module ChefZero # /roles/NAME class RoleEndpoint < RestObjectEndpoint def populate_defaults(request, response_json) - role = FFI_Yajl::Parser.parse(response_json) + role = FFI_Yajl::Parser.parse(response_json, :create_additions => false) role = ChefData::DataNormalizer.normalize_role(role, request.rest_path[3]) FFI_Yajl::Encoder.encode(role, :pretty => true) end -- cgit v1.2.1