]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
oops: /usr/lib/ruby/1.8/facter/util/loader.rb:72:in `load': /var/lib/puppet/facts...
authorStephen Gran <steve@lobefin.net>
Tue, 4 Aug 2009 20:40:18 +0000 (21:40 +0100)
committerStephen Gran <steve@lobefin.net>
Tue, 4 Aug 2009 20:40:18 +0000 (21:40 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/raidarray.rb

index 78972a19878e1534b41dd39c9b075a017f9b87ee..acf5ae219550381a3baf9fb54729c3301d18b1d9 100644 (file)
@@ -4,7 +4,7 @@ Facter.add("smartarraycontroller") do
        setcode do
                ishp = "false"
                lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
-               if (lspciexists && (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/
                        }