]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 1d6b631d1b87a1d04064445c45192a706d025eaf..275c5fac3b97aaaf2827aa50a3d49df1cd56106d 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