X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6fac9148d15864c1f4e09d9adfbb9db3b01181fa..2e5da4c766bef71968e4c018751183ed31bd4633:/cookbooks/hardware/recipes/default.rb?ds=inline diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index f19446969..3c2f84a68 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -332,6 +332,8 @@ if status_packages["sas2ircu-status"] bus = host.sub("/sys/class/scsi_host/host", "") Dir.glob("/sys/bus/scsi/devices/#{bus}:0:*/scsi_generic/*").each do |sg| + next if File.directory?("#{sg}/../../block") + disks << { :device => File.basename(sg) } end end