summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r--lib/chef/client.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index 2df5b7271f..c857da1b93 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -417,13 +417,6 @@ class Chef
end
end
- # Register the data collector reporter to send event information to the
- # data collector server
- # @api private
- def register_data_collector_reporter
- events.register(Chef::DataCollector::Reporter.new) if Chef::DataCollector.register_reporter?
- end
-
#
# Callback to fire notifications that the Chef run is starting
#
@@ -966,6 +959,12 @@ class Chef
Chef::ReservedNames::Win32::Security.has_admin_privileges?
end
+
+ # Register the data collector reporter to send event information to the
+ # data collector server
+ def register_data_collector_reporter
+ events.register(Chef::DataCollector::Reporter.new) if Chef::DataCollector.register_reporter?
+ end
end
end