From ed847212d8161a8ca3a938aaed1fd2b7d77dc4af Mon Sep 17 00:00:00 2001 From: Chris Doherty Date: Mon, 2 Nov 2015 10:23:04 -0800 Subject: Fix comments. --- lib/chef_zero/endpoints/organization_policies_endpoint.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chef_zero/endpoints/organization_policies_endpoint.rb b/lib/chef_zero/endpoints/organization_policies_endpoint.rb index f4094f1..49bc7f7 100644 --- a/lib/chef_zero/endpoints/organization_policies_endpoint.rb +++ b/lib/chef_zero/endpoints/organization_policies_endpoint.rb @@ -56,7 +56,7 @@ module ChefZero def post(request) if request.rest_path.last == "revisions" # POST /policies/:policy_name/revisions - # want to create /policies/{policy_name}/revisions/{revision_id} + # we want to create /policies/{policy_name}/revisions/{revision_id} policyfile_data = parse_json(request.body) uri_policy_name = request.rest_path[-2] @@ -75,7 +75,7 @@ module ChefZero end def delete(request) - # /policy_groups/:policy_group/policies/:policy_name + # /policies/:policy_name/revisions/:revision_id if request.rest_path[-2] == "policies" revisions = list_data(request, request.rest_path + ["revisions"]) data = { revisions: hashify_list(revisions) } -- cgit v1.2.1