diff options
author | sersut <serdar@opscode.com> | 2014-01-16 14:16:07 -0800 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2014-01-16 14:16:07 -0800 |
commit | a35946ff43f616929638846316cea2d3e6d028b5 (patch) | |
tree | 461bd515ef6ecc055192f0e3257e7f29d180cc39 | |
parent | 4cb3b0bb024b6d3b7d401a3844581643f17ee84d (diff) | |
download | ohai-a35946ff43f616929638846316cea2d3e6d028b5.tar.gz |
Initialize the attribute correctly in kernel plugin for windows.
-rw-r--r-- | lib/ohai/plugins/kernel.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/kernel.rb b/lib/ohai/plugins/kernel.rb index ee734379..e2d7af5c 100644 --- a/lib/ohai/plugins/kernel.rb +++ b/lib/ohai/plugins/kernel.rb @@ -158,7 +158,7 @@ Ohai.plugin(:Kernel) do 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 |