projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3093420
)
oops: /usr/lib/ruby/1.8/facter/util/loader.rb:72:in `load': /var/lib/puppet/facts...
author
Stephen Gran
<steve@lobefin.net>
Tue, 4 Aug 2009 20:40:18 +0000
(21:40 +0100)
committer
Stephen 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
patch
|
blob
|
history
diff --git
a/facts/raidarray.rb
b/facts/raidarray.rb
index
78972a1
..
acf5ae2
100644
(file)
--- 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/
}