]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Oh what the hell, one more try to make it shut up
authorStephen Gran <steve@lobefin.net>
Tue, 4 Aug 2009 19:02:13 +0000 (20:02 +0100)
committerStephen Gran <steve@lobefin.net>
Tue, 4 Aug 2009 19:02:13 +0000 (20:02 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/raidarray.rb

index d7bf8a9e864329a54d7f8f2b7cae9d9f75ae89ab..78972a19878e1534b41dd39c9b075a017f9b87ee 100644 (file)
@@ -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/
                        }