From 9a42179a031f740c7ada9f6c8e83e8afd4ceb09e Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Wed, 23 Sep 2009 00:45:39 +0100 Subject: [PATCH] put the constraint in the right fact, Steve Signed-off-by: Stephen Gran --- facts/hosts.rb | 1 - facts/services.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/facts/hosts.rb b/facts/hosts.rb index 69c15acd2..b55c43b1a 100644 --- a/facts/hosts.rb +++ b/facts/hosts.rb @@ -1,5 +1,4 @@ Facter.add("brokenhosts") do - confine :kernel => :linux brokenhosts = "true" if FileTest.exist?("/etc/hosts") IO.foreach("/etc/hosts") do |x| diff --git a/facts/services.rb b/facts/services.rb index 6c40cf09a..d52f09c8d 100644 --- a/facts/services.rb +++ b/facts/services.rb @@ -1,4 +1,5 @@ ["bugs","qa"].each do |service| + confine :kernel => :linux Facter.add(service + "_host") do service_name = "#{service}." + Facter.domain active = false -- 2.20.1