From: Stephen Gran Date: Sat, 28 Feb 2009 23:50:32 +0000 (+0000) Subject: Duh. == and = are not the same thing X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=ba6f9245a5e6dc40ceec360a6088c411586d2e72;p=mirror%2Fdsa-puppet.git Duh. == and = are not the same thing Signed-off-by: Stephen Gran --- diff --git a/facts/raidcontroller.rb b/facts/raidcontroller.rb index 1d6b631d1..275c5fac3 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