summaryrefslogtreecommitdiff
path: root/lib/chef/resource_reporter.rb
diff options
context:
space:
mode:
authorRanjib Dey <dey.ranjib@gmail.com>2013-07-24 00:10:39 -0700
committerBryan McLellan <btm@opscode.com>2013-11-06 09:13:47 -0800
commitde0b38de4c74a354477d841a66c604f92e647450 (patch)
treef7675d48060d7a67df0bdf6b5b722c1689394332 /lib/chef/resource_reporter.rb
parentb0bd056d854bc5f2de32c637c2a1821fbd2df777 (diff)
downloadchef-de0b38de4c74a354477d841a66c604f92e647450.tar.gz
pass elapsed time along with node/exception in event hanlders
Diffstat (limited to 'lib/chef/resource_reporter.rb')
-rw-r--r--lib/chef/resource_reporter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource_reporter.rb b/lib/chef/resource_reporter.rb
index d29949086e..2727084018 100644
--- a/lib/chef/resource_reporter.rb
+++ b/lib/chef/resource_reporter.rb
@@ -196,12 +196,12 @@ class Chef
end
end
- def run_completed(node)
+ def run_completed(node, elapsed_time)
@status = "success"
post_reporting_data
end
- def run_failed(exception)
+ def run_failed(exception, elapsed_time)
@exception = exception
@status = "failure"
# If we failed before we received the run_started callback, there's not much we can do