]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 be4bbad195eb0cb69d7a7f014a15ca02a7ff777d..d7735329ec14605cf902154240810bd125611df0 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 4e8417423354b6f6cd880276517c64de7253769d..8ad284719252216c52a7d4f5641b7651aac94af1 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