try to make these booleans, part 2
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / raidarray.rb
index be4bbad..d773532 100644 (file)
@@ -11,7 +11,7 @@ Facter.add("ThreeWarecontroller") do
                is3w = false
                if FileTest.exist?("/proc/scsi/scsi")
                        IO.foreach("/proc/scsi/scsi") { |x|
-                               is3w = "true" if x =~ /Vendor: 3ware/
+                               is3w = true if x =~ /Vendor: 3ware/
                        }
                end
                is3w
@@ -45,7 +45,7 @@ Facter.add("swraid") do
                 swraid = false
                if FileTest.exist?("/proc/mdstat") && FileTest.exist?("/sbin/mdadm")
                         IO.foreach("/proc/mdstat") { |x|
-                                swraid = "true" if x =~ /md[0-9]+ : active/
+                                swraid = true if x =~ /md[0-9]+ : active/
                         }
                 end
                 swraid