]> git.openstreetmap.org Git - chef.git/commitdiff
Improve detection of unassigned drives on HP controllers
authorTom Hughes <tom@compton.nu>
Sun, 24 Jul 2022 23:31:29 +0000 (00:31 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 24 Jul 2022 23:31:29 +0000 (00:31 +0100)
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"