From 7be8a0c7a81af62b3b0ee343321b0fc6599af986 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 4 Aug 2009 21:40:18 +0100 Subject: [PATCH] oops: /usr/lib/ruby/1.8/facter/util/loader.rb:72:in `load': /var/lib/puppet/facts/raidarray.rb:11: syntax error, unexpected kEND, expecting ')' (SyntaxError) 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 78972a19..acf5ae21 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 (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/ } -- 2.39.2