summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2017-11-14 22:02:51 -0500
committerBryan McLellan <btm@loftninjas.org>2017-11-14 22:02:51 -0500
commitecc8dd9135f63f682922d0be2a567640a5ac4826 (patch)
treee39ccf66a164442d36db632df2c0a7c5d1e682fa /lib/chef/client.rb
parent223d9556f1b98e548f26d1ebe4b8eee5f1c98db2 (diff)
downloadchef-ecc8dd9135f63f682922d0be2a567640a5ac4826.tar.gz
Add ohai_time to minimal_ohai filterbtm/minimal_ohai_time
We need ohai_time to get the 'Last Check-In' time on the Chef Server. There is really no risk to including it. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r--lib/chef/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index ed55cd791d..1211e9425e 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -602,7 +602,7 @@ class Chef
# @api private
#
def run_ohai
- filter = Chef::Config[:minimal_ohai] ? %w{fqdn machinename hostname platform platform_version os os_version} : nil
+ filter = Chef::Config[:minimal_ohai] ? %w{fqdn machinename hostname platform platform_version ohai_time os os_version} : nil
ohai.all_plugins(filter)
events.ohai_completed(node)
rescue Ohai::Exceptions::CriticalPluginFailure => e