Revert "not breaking the paths in production branch maybe helps"
[mirror/dsa-puppet.git] / facts / hosts.rb
index 3e6b2d9..b55c43b 100644 (file)
@@ -1,10 +1,9 @@
 Facter.add("brokenhosts") do
-       confine :kernel => :linux
        brokenhosts = "true"
        if FileTest.exist?("/etc/hosts")
                IO.foreach("/etc/hosts") do |x|
                        x.split.each do |y|
-                               if y == fqdn
+                               if y == Facter.value("fqdn")
                                        brokenhosts = "false"
                                        break
                                end