From ba6f9245a5e6dc40ceec360a6088c411586d2e72 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 28 Feb 2009 23:50:32 +0000 Subject: [PATCH] Duh. == and = are not the same thing Signed-off-by: Stephen Gran --- facts/raidcontroller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facts/raidcontroller.rb b/facts/raidcontroller.rb index 1d6b631d..275c5fac 100644 --- a/facts/raidcontroller.rb +++ b/facts/raidcontroller.rb @@ -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 -- 2.39.2