summaryrefslogtreecommitdiff
path: root/lib/chef/resource_reporter.rb
diff options
context:
space:
mode:
authorRanjib Dey <dey.ranjib@gmail.com>2013-07-25 12:31:15 -0700
committerBryan McLellan <btm@opscode.com>2013-11-06 09:13:47 -0800
commit19511dbd2f3054752e3013c0853dc5cc9951033a (patch)
treedf0d9cb48b6308cb90b251b3fb24cac7f659d8f5 /lib/chef/resource_reporter.rb
parentde0b38de4c74a354477d841a66c604f92e647450 (diff)
downloadchef-19511dbd2f3054752e3013c0853dc5cc9951033a.tar.gz
compute elapsed time without altering public api
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 2727084018..d29949086e 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, elapsed_time)
+ def run_completed(node)
@status = "success"
post_reporting_data
end
- def run_failed(exception, elapsed_time)
+ def run_failed(exception)
@exception = exception
@status = "failure"
# If we failed before we received the run_started callback, there's not much we can do