X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cb17de3ad93b395219a25860f926fc0d8e1c3105..2f524f8b38477e2c7928797ea824307462c2f591:/cookbooks/hardware/templates/default/ohai.rb.erb diff --git a/cookbooks/hardware/templates/default/ohai.rb.erb b/cookbooks/hardware/templates/default/ohai.rb.erb index 1ca3de03a..1e7ca8713 100644 --- a/cookbooks/hardware/templates/default/ohai.rb.erb +++ b/cookbooks/hardware/templates/default/ohai.rb.erb @@ -190,7 +190,7 @@ Ohai.plugin(:Hardware) do Dir.glob("/sys/class/scsi_host/host*") do |host| driver = read_sysctl_file("#{host}/proc_name") - if driver == "ahci" || driver == "mptsas" + if %w(ahci mptsas sata_mv sata_nv).include?(driver) bus = host.sub("/sys/class/scsi_host/host", "") Dir.glob("/sys/bus/scsi/devices/#{bus}:0:*").each do |device|