]> git.openstreetmap.org Git - chef.git/commitdiff
Fix up some Intel disk details
authorTom Hughes <tom@compton.nu>
Mon, 30 Jul 2018 08:00:56 +0000 (09:00 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 30 Jul 2018 08:00:56 +0000 (09:00 +0100)
cookbooks/hardware/templates/default/ohai.rb.erb

index 52c0752ea9335fe6342dbe26621eda42c1cf0aab..23965c8bd601fd4f1071acd711ebee4a715d3d63 100644 (file)
@@ -158,7 +158,7 @@ Ohai.plugin(:Hardware) do
     find_md_arrays(disk)
 
     disk[:disks].each do |disk|
-      if disk[:vendor] =~ /^CVPR/ && disk[:model] == "INTEL"
+      if disk[:vendor] =~ /^(BTWA|CVPR|PHDV)/ && disk[:model] == "INTEL"
         disk[:model] = disk[:serial_number]
         disk[:serial_number] = disk[:vendor]
         disk[:vendor] = "INTEL"