From: Stephen Gran Date: Wed, 22 Jul 2009 22:20:08 +0000 (+0100) Subject: please to be quiet, zelenka X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=860f380570a7977e64352752349e69b2463a2a88;p=mirror%2Fdsa-puppet.git please to be quiet, zelenka Signed-off-by: Stephen Gran --- diff --git a/facts/raidcontroller.rb b/facts/raidcontroller.rb index 12d140fd0..8a09a71ca 100644 --- a/facts/raidcontroller.rb +++ b/facts/raidcontroller.rb @@ -5,7 +5,7 @@ Facter.add("smartarraycontroller") do ishp = "false" lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'" if $?.exitstatus == 0 - %x{lspci}.each { |s| + %x{lspci 2>&1}.each { |s| ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/ } end