From 30934200b27a2b8e158b21952727515d47d6367f Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 4 Aug 2009 20:02:13 +0100 Subject: [PATCH] Oh what the hell, one more try to make it shut up Signed-off-by: Stephen Gran --- facts/raidarray.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facts/raidarray.rb b/facts/raidarray.rb index d7bf8a9e8..78972a198 100644 --- a/facts/raidarray.rb +++ b/facts/raidarray.rb @@ -4,7 +4,7 @@ Facter.add("smartarraycontroller") do setcode do ishp = "false" lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'" - if (($?.exitstatus == 0) && (FileTest.exist?("/proc/bus/pci"))) + if (lspciexists && (FileTest.exist?("/proc/bus/pci")) %x{lspci 2>&1}.each { |s| ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/ } -- 2.20.1