From e932e13a1fe081fb8a466f03fb296153bab1024d Mon Sep 17 00:00:00 2001 From: sersut Date: Wed, 5 Dec 2012 09:21:19 -0800 Subject: Add debug message to windows cpu provider to notify when numberofcores property is not found. --- lib/ohai/plugins/windows/cpu.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ohai/plugins/windows/cpu.rb b/lib/ohai/plugins/windows/cpu.rb index e3671073..4fb1f4fe 100644 --- a/lib/ohai/plugins/windows/cpu.rb +++ b/lib/ohai/plugins/windows/cpu.rb @@ -40,6 +40,7 @@ WMI::Win32_Processor.find(:all).each do |processor| number_of_cores = processor.numberofcores cpu_number += number_of_cores rescue NoMethodError => e + Ohai::Log.info("Can not find numberofcores property on Win32_Processor. Consider applying this patch: http://support.microsoft.com/kb/932370") end current_cpu = index.to_s -- cgit v1.2.1