diff options
author | Chris Doherty <cdoherty@chef.io> | 2015-11-02 10:23:04 -0800 |
---|---|---|
committer | Chris Doherty <cdoherty@chef.io> | 2015-11-02 10:23:04 -0800 |
commit | ed847212d8161a8ca3a938aaed1fd2b7d77dc4af (patch) | |
tree | 1e28e5abe2d7f80291a54d8dc3ba828a43abd80f | |
parent | 6aa55da014aeef1dd45cbcd9b09f828f8f69f2a5 (diff) | |
download | chef-zero-ed847212d8161a8ca3a938aaed1fd2b7d77dc4af.tar.gz |
Fix comments.
-rw-r--r-- | lib/chef_zero/endpoints/organization_policies_endpoint.rb | 4 |
1 files 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) } |