]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Scope fqdn
authorStephen Gran <steve@lobefin.net>
Mon, 29 Jun 2009 07:05:41 +0000 (08:05 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 29 Jun 2009 07:05:41 +0000 (08:05 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/hosts.rb

index 3e6b2d9dd7504da09a1b6666f598db67fb4e92f0..82395ed5f913f014532e0073894bbaf67c72128c 100644 (file)
@@ -4,7 +4,7 @@ Facter.add("brokenhosts") do
        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