diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-03 10:00:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-03 10:00:13 -0700 |
commit | efaae3c98e8526e47a3e574419b3c58f92a8598e (patch) | |
tree | d54e7f597b2c0922b1185392578f6eb9ca414513 /lib/chef_zero/endpoints/node_identifiers_endpoint.rb | |
parent | f27950943f07e7ccda01a03ff728e1d1aca3513e (diff) | |
parent | 388576b19fce39303c5d444eb787c7eb89aee994 (diff) | |
download | chef-zero-efaae3c98e8526e47a3e574419b3c58f92a8598e.tar.gz |
Merge pull request #283 from chef/lcg/remove-hashrockets
remove hashrocket syntax
Diffstat (limited to 'lib/chef_zero/endpoints/node_identifiers_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/node_identifiers_endpoint.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef_zero/endpoints/node_identifiers_endpoint.rb b/lib/chef_zero/endpoints/node_identifiers_endpoint.rb index 68aa01f..b62693a 100644 --- a/lib/chef_zero/endpoints/node_identifiers_endpoint.rb +++ b/lib/chef_zero/endpoints/node_identifiers_endpoint.rb @@ -9,9 +9,9 @@ module ChefZero def get(request) if get_data(request, request.rest_path[0..3]) result = { - :id => UUIDTools::UUID.parse_raw(request.rest_path[0..4].to_s).to_s.delete("-"), - :authz_id => "0" * 32, - :org_id => UUIDTools::UUID.parse_raw(request.rest_path[0..1].to_s).to_s.delete("-") } + id: UUIDTools::UUID.parse_raw(request.rest_path[0..4].to_s).to_s.delete("-"), + authz_id: "0" * 32, + org_id: UUIDTools::UUID.parse_raw(request.rest_path[0..1].to_s).to_s.delete("-") } json_response(200, result) else raise RestErrorResponse.new(404, "Object not found: #{build_uri(request.base_uri, request.rest_path)}") |