diff options
author | ssutay <serdar@opscode.com> | 2012-09-05 14:50:03 -0700 |
---|---|---|
committer | ssutay <serdar@opscode.com> | 2012-09-05 14:50:03 -0700 |
commit | 0b85ac7c62abbecefc9df463cb88e380156527eb (patch) | |
tree | 6e526b5ce52bac5a927b7d0fa2f29badfa946368 | |
parent | 00dd530be053b3f89ffe3fc7f411bcca2d822f02 (diff) | |
download | chef-0b85ac7c62abbecefc9df463cb88e380156527eb.tar.gz |
Point chef-client to the new reporting endpoint.
-rw-r--r-- | chef/lib/chef/resource_reporter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/lib/chef/resource_reporter.rb b/chef/lib/chef/resource_reporter.rb index 6e5f4c2a6f..d2561203ea 100644 --- a/chef/lib/chef/resource_reporter.rb +++ b/chef/lib/chef/resource_reporter.rb @@ -100,7 +100,7 @@ class Chef def node_load_completed(node, expanded_run_list_with_versions, config) @node = node - resource_history_url = "nodes/#{@node.name}/runs" + resource_history_url = "reports/nodes/#{@node.name}/runs" server_response = @rest_client.post_rest(resource_history_url, {:action => :begin}) run_uri = URI.parse(server_response["uri"]) @run_id = ::File.basename(run_uri.path) @@ -151,7 +151,7 @@ class Chef def run_completed(node) if reporting_enabled? - resource_history_url = "nodes/#{@node.name}/runs/#{run_id}" + resource_history_url = "reports/nodes/#{@node.name}/runs/#{run_id}" run_data = report(node) run_data["action"] = "end" Chef::Log.info("Sending resource update report (run-id: #{run_id})") |