summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/event_dispatch/dispatcher.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/event_dispatch/dispatcher.rb b/lib/chef/event_dispatch/dispatcher.rb
index 2fee4bcd0b..748a04f04c 100644
--- a/lib/chef/event_dispatch/dispatcher.rb
+++ b/lib/chef/event_dispatch/dispatcher.rb
@@ -10,11 +10,13 @@ class Chef
class Dispatcher < Base
attr_reader :subscribers
- attr_reader :event_list
def initialize(*subscribers)
@subscribers = subscribers
- @event_list = []
+ end
+
+ def event_list
+ Thread.current[:chef_client_event_list] ||= []
end
# Add a new subscriber to the list of registered subscribers