]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/templates/default/ohai.rb.erb
Improve detection of unassigned drives on HP controllers
[chef.git] / cookbooks / hardware / templates / default / ohai.rb.erb
index 343b095a4d7c6c29c5e1f6b580a6f4e45dc5dff2..c7d245b94e555abf1d2978f2f786eae19e9eb359 100644 (file)
@@ -413,7 +413,7 @@ Ohai.plugin(:Hardware) do
         disk[:status] = "online"
       elsif disk[:status] == "OK" && disk[:drive_type] == "Spare Drive"
         disk[:status] = "hotspare"
-      elsif disk[:status] == "OK" && disk[:drive_type] == "Unassigned Drive"
+      elsif disk[:drive_type] == "Unassigned Drive"
         disk[:status] = "unconfigured"
       else
         disk[:status] = "unknown"