- if location = disks.find_index(disk[:location])
- disk[:smart_device] = "cciss,#{location}"
- end
+ controller = disk[:controller]
+
+ next unless devices[:controllers][controller][:type] == "hp"
+
+ disk[:smart_device] = "cciss,#{disks.find_index(disk[:location])}"