]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/templates/default/ohai.rb.erb
Merge remote-tracking branch 'github/pull/570'
[chef.git] / cookbooks / hardware / templates / default / ohai.rb.erb
index 6e6e5f37e200d1f86c50ba95882fcdf126553970..b6064b38465184f3930eba4189661e2c9c928f20 100644 (file)
@@ -403,6 +403,10 @@ Ohai.plugin(:Hardware) do
     end
 
     devices[:disks].each do |disk|
+      controller = disk[:controller]
+
+      next unless devices[:controllers][controller][:type] == "hp"
+
       disk[:smart_device] = "cciss,#{disks.find_index(disk[:location])}"
 
       if disk[:status] == "Failed"