try to make these booleans, part 2
authorStephen Gran <steve@lobefin.net>
Sun, 18 Mar 2012 15:54:04 +0000 (15:54 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 18 Mar 2012 15:54:04 +0000 (15:54 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/debian-org/lib/facter/raidarray.rb
modules/debian-org/lib/facter/services.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
index 4e84174..8ad2847 100644 (file)
@@ -10,7 +10,7 @@
                                        Facter.interfaces.split(',').each do |my_interface|
                                                my_ip = Facter.value("ipaddress_" + my_interface)
                                                if my_ip == service_ip
-                                                       active = "true"
+                                                       active = true
                                                end
                                        end
                                end