summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2015-04-30 14:25:00 +0100
committerThom May <thom@may.lt>2015-04-30 14:25:00 +0100
commitb18b5ed8ef1360f9444649d1efd643727e5a42ed (patch)
tree2ed605d57b4c68336a5013d1eea96df0eda28988 /lib/chef/client.rb
parent77e32218bcec1a6b0934d826919b8e1ba0b6dbc0 (diff)
parent56958bd7b82dc2eff15f1d55182efd549323bbfb (diff)
downloadchef-b18b5ed8ef1360f9444649d1efd643727e5a42ed.tar.gz
Merge pull request #3207 from Igorshp/exception_handlers
patch to always run exception handlers
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 d04a3dbbd5..0764d3f3ba 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -152,7 +152,6 @@ class Chef
def initialize(json_attribs=nil, args={})
@json_attribs = json_attribs || {}
@node = nil
- @run_status = nil
@runner = nil
@ohai = Ohai::System.new
@@ -162,6 +161,7 @@ class Chef
@events = EventDispatch::Dispatcher.new(*event_handlers)
@override_runlist = args.delete(:override_runlist)
@specific_recipes = args.delete(:specific_recipes)
+ @run_status = Chef::RunStatus.new(node, events)
if new_runlist = args.delete(:runlist)
@json_attribs["run_list"] = new_runlist
@@ -248,7 +248,7 @@ class Chef
# @return [Chef::Node] The updated node object
def build_node
policy_builder.build_node
- @run_status = Chef::RunStatus.new(node, events)
+ @run_status.node = node
node
end