Duh. == and = are not the same thing
authorStephen Gran <steve@lobefin.net>
Sat, 28 Feb 2009 23:50:32 +0000 (23:50 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 28 Feb 2009 23:50:32 +0000 (23:50 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/raidcontroller.rb

index 1d6b631..275c5fa 100644 (file)
@@ -6,7 +6,7 @@ Facter.add("raidcontroller") do
                 lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
                 if $?.exitstatus == 0
                         %x{lspci}.each { |s|
-                                ishp == "true" if s =~ /RAID bus controller: (.*) Smart Array/
+                                ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/
                         }
                 end
                 ishp