confine ip addr fact to linux
authorStephen Gran <steve@lobefin.net>
Sun, 7 Mar 2010 11:23:26 +0000 (11:23 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 7 Mar 2010 11:23:26 +0000 (11:23 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/ipaddresses.rb

index f1bbd69..a80fa6b 100644 (file)
@@ -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/