summaryrefslogtreecommitdiff
path: root/lib/chef/client.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/client.rb
parentb0bd056d854bc5f2de32c637c2a1821fbd2df777 (diff)
downloadchef-de0b38de4c74a354477d841a66c604f92e647450.tar.gz
pass elapsed time along with node/exception in event hanlders
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r--lib/chef/client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index 30b714cded..da9c6f1b77 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -504,7 +504,7 @@ class Chef
run_status.stop_clock
Chef::Log.info("Chef Run complete in #{run_status.elapsed_time} seconds")
run_completed_successfully
- @events.run_completed(node)
+ @events.run_completed(node, run_status.elapsed_time)
true
rescue Exception => e
# CHEF-3336: Send the error first in case something goes wrong below and we don't know why
@@ -516,7 +516,7 @@ class Chef
run_failed
end
Chef::Application.debug_stacktrace(e)
- @events.run_failed(e)
+ @events.run_failed(e, run_status.elapsed_time)
raise
ensure
@run_status = nil