diff options
-rw-r--r-- | lib/ohai/plugins/kernel.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ohai/plugins/kernel.rb b/lib/ohai/plugins/kernel.rb index 085f132a..c038aa03 100644 --- a/lib/ohai/plugins/kernel.rb +++ b/lib/ohai/plugins/kernel.rb @@ -177,8 +177,13 @@ Ohai.plugin(:Kernel) do host = wmi.first_of('Win32_ComputerSystem') kernel[:cs_info] = Mash.new + cs_info_blacklist = [ + 'oem_logo_bitmap' + ] host.wmi_ole_object.properties_.each do |p| - kernel[:cs_info][p.name.wmi_underscore.to_sym] = host[p.name.downcase] + if !cs_info_blacklist.include?(p.name.wmi_underscore) + kernel[:cs_info][p.name.wmi_underscore.to_sym] = host[p.name.downcase] + end end kernel[:machine] = machine_lookup("#{kernel[:cs_info][:system_type]}") |