try to make these booleans
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / hosts.rb
index b55c43b..2a6b692 100644 (file)
@@ -1,17 +1,17 @@
 Facter.add("brokenhosts") do
-       brokenhosts = "true"
+       brokenhosts = true
        if FileTest.exist?("/etc/hosts")
                IO.foreach("/etc/hosts") do |x|
                        x.split.each do |y|
                                if y == Facter.value("fqdn")
-                                       brokenhosts = "false"
+                                       brokenhosts = false
                                        break
                                end
                        end
                end
        end
        setcode do
-               brokenhosts == "true"
+               brokenhosts
        end
 end