summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/actor_keys_endpoint.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-12-29 18:06:37 -0800
committerGitHub <noreply@github.com>2019-12-29 18:06:37 -0800
commitc8bf6efa66ff005ab87ff81c9a857ea0c6c1090e (patch)
tree3a25409c03ff3ac83f94e6e740145353d3e2c095 /lib/chef_zero/endpoints/actor_keys_endpoint.rb
parent435755ee68c14fd6d6f858e451e7afeee1610e6f (diff)
parentecad8fee4a946b337e60a4274de2b2c872c9e81b (diff)
downloadchef-zero-c8bf6efa66ff005ab87ff81c9a857ea0c6c1090e.tar.gz
Merge pull request #298 from chef/chefstyle
Apply Chefstyle
Diffstat (limited to 'lib/chef_zero/endpoints/actor_keys_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/actor_keys_endpoint.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/actor_keys_endpoint.rb b/lib/chef_zero/endpoints/actor_keys_endpoint.rb
index b3bab9a..89528b2 100644
--- a/lib/chef_zero/endpoints/actor_keys_endpoint.rb
+++ b/lib/chef_zero/endpoints/actor_keys_endpoint.rb
@@ -50,7 +50,7 @@ module ChefZero
response_body["private_key"] = private_key if generate_keys
json_response(201, response_body,
- headers: { "Location" => response_body["uri"] })
+ headers: { "Location" => response_body["uri"] })
end
private
@@ -117,6 +117,7 @@ module ChefZero
def actor_path(request)
return request.rest_path[0..3] if client?(request)
+
request.rest_path[0..1]
end