diff options
Diffstat (limited to 'lib/chef_zero/endpoints/acls_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/acls_endpoint.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef_zero/endpoints/acls_endpoint.rb b/lib/chef_zero/endpoints/acls_endpoint.rb index ad9bb31..8565eea 100644 --- a/lib/chef_zero/endpoints/acls_endpoint.rb +++ b/lib/chef_zero/endpoints/acls_endpoint.rb @@ -1,7 +1,7 @@ -require 'ffi_yajl' -require 'chef_zero/rest_base' -require 'chef_zero/chef_data/data_normalizer' -require 'chef_zero/chef_data/acl_path' +require "ffi_yajl" +require "chef_zero/rest_base" +require "chef_zero/chef_data/data_normalizer" +require "chef_zero/chef_data/acl_path" module ChefZero module Endpoints @@ -15,7 +15,7 @@ module ChefZero class AclsEndpoint < RestBase def get(request) path = request.rest_path[0..-2] # Strip off _acl - path = path[0..1] if path.size == 3 && path[0] == 'organizations' && %w(organization organizations).include?(path[2]) + path = path[0..1] if path.size == 3 && path[0] == "organizations" && %w{organization organizations}.include?(path[2]) acl_path = ChefData::AclPath.get_acl_data_path(path) if !acl_path raise RestErrorResponse.new(404, "Object not found: #{build_uri(request.base_uri, request.rest_path)}") |