summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2012-12-05 09:21:19 -0800
committersersut <serdar@opscode.com>2012-12-05 09:21:19 -0800
commite932e13a1fe081fb8a466f03fb296153bab1024d (patch)
tree67cc085fc2ddf0a0a34017a9503a9b6ff111c2cc
parentb0964db46668edccfb58a54a8a1c545b69e2d571 (diff)
downloadohai-win2k3-fix.tar.gz
Add debug message to windows cpu provider to notify when numberofcores property is not found.win2k3-fix
-rw-r--r--lib/ohai/plugins/windows/cpu.rb1
1 files changed, 1 insertions, 0 deletions
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