summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/node_endpoint.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-09-02 15:51:14 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-09-02 15:51:14 -0700
commitc3a79237eb34266d948bb780b36f7865a9322544 (patch)
treec12db79358d00fe96002377b04b6bee5b2bf41f6 /lib/chef_zero/endpoints/node_endpoint.rb
parentc674dfeacf773579a2eb56cb3c02428268452b50 (diff)
downloadchef-zero-c3a79237eb34266d948bb780b36f7865a9322544.tar.gz
Revert "remove create additions flag"
This reverts commit c674dfeacf773579a2eb56cb3c02428268452b50.
Diffstat (limited to 'lib/chef_zero/endpoints/node_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/node_endpoint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/node_endpoint.rb b/lib/chef_zero/endpoints/node_endpoint.rb
index 98e88a0..af0e9e0 100644
--- a/lib/chef_zero/endpoints/node_endpoint.rb
+++ b/lib/chef_zero/endpoints/node_endpoint.rb
@@ -21,7 +21,7 @@ module ChefZero
end
def populate_defaults(request, response_json)
- node = FFI_Yajl::Parser.parse(response_json)
+ node = FFI_Yajl::Parser.parse(response_json, :create_additions => false)
node = ChefData::DataNormalizer.normalize_node(node, request.rest_path[3])
FFI_Yajl::Encoder.encode(node, :pretty => true)
end