Treat sata_mv and sata_nv as "direct" disk controllers
authorTom Hughes <tom@compton.nu>
Mon, 11 Jan 2016 09:09:34 +0000 (09:09 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 11 Jan 2016 09:09:34 +0000 (09:09 +0000)
cookbooks/hardware/templates/default/ohai.rb.erb

index 1ca3de03aa5d789c82b7c8f60fdddc2b1ed5e62b..1e7ca8713154bc88884ee8a3ca4e0d96b414a50a 100644 (file)
@@ -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|