From: Stephen Gran Date: Tue, 4 Aug 2009 19:02:13 +0000 (+0100) Subject: Oh what the hell, one more try to make it shut up X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;ds=inline;h=30934200b27a2b8e158b21952727515d47d6367f;p=mirror%2Fdsa-puppet.git Oh what the hell, one more try to make it shut up Signed-off-by: Stephen Gran --- 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/ }