summaryrefslogtreecommitdiff
path: root/spec/functional/dsl/reboot_pending_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/dsl/reboot_pending_spec.rb')
-rw-r--r--spec/functional/dsl/reboot_pending_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/functional/dsl/reboot_pending_spec.rb b/spec/functional/dsl/reboot_pending_spec.rb
index 966f8b58c5..128d373d35 100644
--- a/spec/functional/dsl/reboot_pending_spec.rb
+++ b/spec/functional/dsl/reboot_pending_spec.rb
@@ -24,7 +24,10 @@ describe Chef::DSL::RebootPending, :windows_only do
def run_ohai
ohai = Ohai::System.new
# Would be nice to limit this to platform/kernel/arch etc for Ohai 7
- ohai.all_plugins
+
+ filter = Chef::Config[:minimal_ohai] ? %w{fqdn machinename hostname platform platform_version os os_version} : nil
+ ohai.all_plugins(filter)
+
node.consume_external_attrs(ohai.data,{})
ohai