Permalink
Browse files

Initialize the attribute correctly in kernel plugin for windows.

  • Loading branch information...
sersut
sersut committed Jan 16, 2014
1 parent 4cb3b0b commit a35946ff43f616929638846316cea2d3e6d028b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ohai/plugins/kernel.rb
@@ -158,7 +158,7 @@ def os_lookup(sys_type)
require 'ruby-wmi'
WIN32OLE.codepage = WIN32OLE::CP_UTF8
- kernel = Mash.new
+ kernel Mash.new
host = WMI::Win32_OperatingSystem.find(:first)
kernel[:os_info] = Mash.new

0 comments on commit a35946f

Please sign in to comment.