IO.popen(["megacli", "-PDList", "-a#{controller}", "-NoLog"]).each do |line|
disks << { :device => device, :driver => "megaraid", :id => Regexp.last_match[1] } if line =~ /^Device Id: ([0-9]+)$/
IO.popen(["megacli", "-PDList", "-a#{controller}", "-NoLog"]).each do |line|
disks << { :device => device, :driver => "megaraid", :id => Regexp.last_match[1] } if line =~ /^Device Id: ([0-9]+)$/