summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/nodes_endpoint.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-06-26 13:43:06 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-06-26 13:43:06 -0700
commit388576b19fce39303c5d444eb787c7eb89aee994 (patch)
treed54e7f597b2c0922b1185392578f6eb9ca414513 /lib/chef_zero/endpoints/nodes_endpoint.rb
parentf27950943f07e7ccda01a03ff728e1d1aca3513e (diff)
downloadchef-zero-388576b19fce39303c5d444eb787c7eb89aee994.tar.gz
remove hashrocket syntaxlcg/remove-hashrockets
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef_zero/endpoints/nodes_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/nodes_endpoint.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef_zero/endpoints/nodes_endpoint.rb b/lib/chef_zero/endpoints/nodes_endpoint.rb
index 42539e1..8b141f8 100644
--- a/lib/chef_zero/endpoints/nodes_endpoint.rb
+++ b/lib/chef_zero/endpoints/nodes_endpoint.rb
@@ -13,11 +13,11 @@ module ChefZero
data = parse_json(request.body)
if data.has_key?("policy_name") && policy_name_invalid?(data["policy_name"])
- return error(400, "Field 'policy_name' invalid", :pretty => false)
+ return error(400, "Field 'policy_name' invalid", pretty: false)
end
if data.has_key?("policy_group") && policy_name_invalid?(data["policy_group"])
- return error(400, "Field 'policy_group' invalid", :pretty => false)
+ return error(400, "Field 'policy_group' invalid", pretty: false)
end
end
@@ -27,7 +27,7 @@ module ChefZero
def populate_defaults(request, response_json)
node = FFI_Yajl::Parser.parse(response_json)
node = ChefData::DataNormalizer.normalize_node(node, request.rest_path[3])
- FFI_Yajl::Encoder.encode(node, :pretty => true)
+ FFI_Yajl::Encoder.encode(node, pretty: true)
end
end
end