diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-06-06 12:34:19 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-06-22 22:25:21 -0700 |
commit | 8febb48d8e75a8b0c701e65c118776a6cbe30277 (patch) | |
tree | 31e42c3e520662bd0d8e23242e7c95cdfc524cb4 | |
parent | 2bd01b7869ee04accb358350e1e3563eff9100b3 (diff) | |
download | ohai-8febb48d8e75a8b0c701e65c118776a6cbe30277.tar.gz |
Remove an internal reference to blacklist
It's past time for this term to go away, even when it's just the name of
a method.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/plugins/kernel.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/ohai/plugins/kernel.rb b/lib/ohai/plugins/kernel.rb index 7a1e85e7..7dc273fa 100644 --- a/lib/ohai/plugins/kernel.rb +++ b/lib/ohai/plugins/kernel.rb @@ -4,7 +4,7 @@ # Author:: Bryan McLellan (<btm@loftninjas.org>) # Author:: Claire McQuin (<claire@chef.io>) # Author:: James Gartrell (<jgartrel@gmail.com>) -# Copyright:: Copyright (c) 2008-2018 Chef Software, Inc. +# Copyright:: Copyright (c) Chef Software, Inc. # Copyright:: Copyright (c) 2009 Bryan McLellan # License:: Apache License, Version 2.0 # @@ -137,11 +137,12 @@ Ohai.plugin(:Kernel) do end end - # see if a WMI name is blacklisted so we can avoid writing out - # useless data to ohai + # see if a WMI name is in the blocked list so we can avoid writing + # out useless data to ohai + # # @param [String] name the wmi name to check - # @return [Boolean] is the wmi name blacklisted - def blacklisted_wmi_name?(name) + # @return [Boolean] is the wmi name in the blocked list + def blocked_wmi_name?(name) [ "creation_class_name", # this is just the wmi name "cs_creation_class_name", # this is just the wmi name @@ -262,7 +263,7 @@ Ohai.plugin(:Kernel) do host = wmi.first_of("Win32_OperatingSystem") kernel[:os_info] = Mash.new host.wmi_ole_object.properties_.each do |p| - next if blacklisted_wmi_name?(p.name.wmi_underscore) + next if blocked_wmi_name?(p.name.wmi_underscore) kernel[:os_info][p.name.wmi_underscore.to_sym] = host[p.name.downcase] end @@ -277,7 +278,7 @@ Ohai.plugin(:Kernel) do kernel[:cs_info] = Mash.new host = wmi.first_of("Win32_ComputerSystem") host.wmi_ole_object.properties_.each do |p| - next if blacklisted_wmi_name?(p.name.wmi_underscore) + next if blocked_wmi_name?(p.name.wmi_underscore) kernel[:cs_info][p.name.wmi_underscore.to_sym] = host[p.name.downcase] end |