From 93461d9ba2f798beedf67ca28d4dee3da1a7c4cf Mon Sep 17 00:00:00 2001 From: Dominic Cleal Date: Thu, 20 Jan 2011 16:40:33 +0000 Subject: Fixed #5950 - Solaris ipaddress incorrect after bonding failure --- lib/facter/ipaddress.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/ipaddress.rb b/lib/facter/ipaddress.rb index 08a5dc8..d563408 100644 --- a/lib/facter/ipaddress.rb +++ b/lib/facter/ipaddress.rb @@ -47,7 +47,7 @@ Facter.add(:ipaddress) do output.split(/^\S/).each { |str| if str =~ /inet ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/ tmp = $1 - unless tmp =~ /^127\./ + unless tmp =~ /^127\./ or tmp == "0.0.0.0" ip = tmp break end -- cgit