From 4aafdf189723dd80a1542d02a1ff35000d9136cc Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 29 Jun 2009 08:05:41 +0100 Subject: [PATCH] Scope fqdn Signed-off-by: Stephen Gran --- facts/hosts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1