summaryrefslogtreecommitdiff
path: root/spec/unit/client_spec.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 /spec/unit/client_spec.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 'spec/unit/client_spec.rb')
-rw-r--r--spec/unit/client_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index 95f308d130..2aff7b2a71 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -38,7 +38,7 @@ describe Chef::Client do
end
it "runs ohai with only the minimum required plugins" do
- expected_filter = %w{fqdn machinename hostname platform platform_version os os_version}
+ expected_filter = %w{fqdn machinename hostname platform platform_version ohai_time os os_version}
expect(ohai_system).to receive(:all_plugins).with(expected_filter)
client.run_ohai
end