From fd6b464b0da569ba84e2f260a666c257b5773f93 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 7 Mar 2010 11:23:26 +0000 Subject: [PATCH] confine ip addr fact to linux Signed-off-by: Stephen Gran --- facts/ipaddresses.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/facts/ipaddresses.rb b/facts/ipaddresses.rb index f1bbd6990..a80fa6be3 100644 --- a/facts/ipaddresses.rb +++ b/facts/ipaddresses.rb @@ -1,4 +1,5 @@ Facter.add("v4ips") do + confine :kernel => :linux addrs = [] %x{ip addr list}.each do |line| next unless line =~ /\s+inet/ @@ -13,6 +14,7 @@ Facter.add("v4ips") do end Facter.add("v6ips") do + confine :kernel => :linux addrs = [] %x{ip addr list}.each do |line| next unless line =~ /\s+inet/ -- 2.20.1