diff --git a/lib/specinfra/host_inventory/ohai.rb b/lib/specinfra/host_inventory/ohai.rb index 289e0bc1..54c1e15f 100644 --- a/lib/specinfra/host_inventory/ohai.rb +++ b/lib/specinfra/host_inventory/ohai.rb @@ -9,7 +9,7 @@ def get end begin - ret = backend.run_command('ohai --log_level error') + ret = backend.run_command('ohai --log_level error 2>/dev/null') rescue StandardError nil end