From 860f380570a7977e64352752349e69b2463a2a88 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Wed, 22 Jul 2009 23:20:08 +0100 Subject: [PATCH] please to be quiet, zelenka Signed-off-by: Stephen Gran --- facts/raidcontroller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1