From: Stephen Gran Date: Mon, 29 Jun 2009 07:05:41 +0000 (+0100) Subject: Scope fqdn X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=4aafdf189723dd80a1542d02a1ff35000d9136cc;p=mirror%2Fdsa-puppet.git Scope fqdn Signed-off-by: Stephen Gran --- diff --git a/facts/hosts.rb b/facts/hosts.rb index 3e6b2d9dd..82395ed5f 100644 --- a/facts/hosts.rb +++ b/facts/hosts.rb @@ -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