diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2017-11-07 14:42:48 -0800 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2017-11-27 10:26:40 -0500 |
commit | 06ac75e6068501ed262035382bc3e1ae0ca45063 (patch) | |
tree | a808aade13e71e6768194b1aa4b8bcbedd5a2d7e /lib/chef/client.rb | |
parent | 437594e25b1bdcd5c5b0af3b2dbfcf7dac6749b8 (diff) | |
download | chef-06ac75e6068501ed262035382bc3e1ae0ca45063.tar.gz |
Makes life easier for hook authors switching from the older report handler syntax.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r-- | lib/chef/client.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 1211e9425e..786ed2c4fc 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -299,7 +299,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) # keep this inside the main loop to get exception backtraces end_profiling @@ -315,7 +315,7 @@ class Chef run_status.exception = run_error run_failed end - events.run_failed(run_error) + events.run_failed(run_error, run_status) ensure Chef::RequestID.instance.reset_request_id @run_status = nil |