summaryrefslogtreecommitdiff
path: root/lib/chef/resource_reporter.rb
diff options
context:
space:
mode:
authormmzyk <mmzyk@opscode.com>2013-04-26 01:13:07 -0400
committerBryan McLellan <btm@opscode.com>2013-06-18 08:58:18 -0700
commit520567084038491f398719c67fadefb316cd7a66 (patch)
tree28ac318d9472da8ea87e3df9db53507182c7aada /lib/chef/resource_reporter.rb
parent0e0339863da133aaf862ae0d503918d44bcf2055 (diff)
downloadchef-520567084038491f398719c67fadefb316cd7a66.tar.gz
[OC-7370] Rename node_run begin action to start
Diffstat (limited to 'lib/chef/resource_reporter.rb')
-rw-r--r--lib/chef/resource_reporter.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource_reporter.rb b/lib/chef/resource_reporter.rb
index af9af65812..e078e88b1f 100644
--- a/lib/chef/resource_reporter.rb
+++ b/lib/chef/resource_reporter.rb
@@ -126,16 +126,16 @@ class Chef
if reporting_enabled?
begin
resource_history_url = "reports/nodes/#{@node.name}/runs"
- server_response = @rest_client.post_rest(resource_history_url, {:action => :begin, :run_id => @run_id,
+ server_response = @rest_client.post_rest(resource_history_url, {:action => :start, :run_id => @run_id,
:start_time => start_time.to_s}, headers)
rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => e
- handle_error_beginning_run(e, resource_history_url)
+ handle_error_starting_run(e, resource_history_url)
end
end
end
- def handle_error_beginning_run(e, url)
- message = "Reporting error beginning run. URL: #{url} "
+ def handle_error_starting_run(e, url)
+ message = "Reporting error starting run. URL: #{url} "
code = if e.response.code
e.response.code.to_s
else