Skip to content

Commit

Permalink
Also look for Supermicro-branded controllers.
Browse files Browse the repository at this point in the history
  • Loading branch information
razorsedge committed Oct 3, 2013
1 parent 1f34762 commit aadbcef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/facter/megaraid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def lsscsi_usable?
confine :kernel => [ :Linux ]
setcode do
if megacli_usable?
list = Facter::Util::Resolution.exec('lsscsi | awk \'{ if($2 == "disk" && $3 == "LSI") { print $6 } }\'')
list = Facter::Util::Resolution.exec('lsscsi | awk \'{ if($2 == "disk" && ($3 == "LSI" || $3 == "SMC")) { print $6 } }\'')
list.map(&:chomp).sort.join(',')
end
end
Expand Down

0 comments on commit aadbcef

Please sign in to comment.