summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-05-01 09:00:53 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-05-01 09:00:53 -0700
commit54b5d408284b51ee47a6c4b2b72c23933a929242 (patch)
tree2b282287bb0b3abd9b6cb515b60448c91836d03f
parent21bae8e115f6fa8103bb1a6e77af0e2687572ce2 (diff)
downloadohai-54b5d408284b51ee47a6c4b2b72c23933a929242.tar.gz
OEM logo is large and completely useless. Removejdm/oem-bitmap
-rw-r--r--lib/ohai/plugins/kernel.rb7
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]}")