Revert "not breaking the paths in production branch maybe helps"
[mirror/dsa-puppet.git] / facts / raidarray.rb
index 78972a1..2e8773b 100644 (file)
@@ -1,15 +1,7 @@
 Facter.add("smartarraycontroller") do
        confine :kernel => :linux
-       ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"
        setcode do
-               ishp = "false"
-               lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
-               if (lspciexists && (FileTest.exist?("/proc/bus/pci"))
-                       %x{lspci 2>&1}.each { |s|
-                               ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/
-                       }
-               end
-               ishp == "true"
+               FileTest.exist?("/dev/cciss/")
        end
 end