From: Stephen Gran Date: Tue, 22 Sep 2009 23:21:39 +0000 (+0100) Subject: a random test X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=94765c19819e8fc49c33ec6593d7db70e9029930;p=dsa-puppet.git a random test Signed-off-by: Stephen Gran --- diff --git a/facts/hosts.rb b/facts/hosts.rb index b55c43b1..69c15acd 100644 --- a/facts/hosts.rb +++ b/facts/hosts.rb @@ -1,4 +1,5 @@ Facter.add("brokenhosts") do + confine :kernel => :linux brokenhosts = "true" if FileTest.exist?("/etc/hosts") IO.foreach("/etc/hosts") do |x|