summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDominic Cleal <dcleal@redhat.com>2011-01-20 16:40:33 +0000
committerJames Turnbull <james@lovedthanlost.net>2011-03-07 20:07:57 +1100
commit93461d9ba2f798beedf67ca28d4dee3da1a7c4cf (patch)
treecb5f4d7b64404105d7b43492d36437201cb13e08 /lib
parent2e06cdcc820ad045f345579901d3d9f04530e0c6 (diff)
downloadfacter-93461d9ba2f798beedf67ca28d4dee3da1a7c4cf.tar.gz
facter-93461d9ba2f798beedf67ca28d4dee3da1a7c4cf.tar.xz
facter-93461d9ba2f798beedf67ca28d4dee3da1a7c4cf.zip
Fixed #5950 - Solaris ipaddress incorrect after bonding failure
Diffstat (limited to 'lib')
-rw-r--r--lib/facter/ipaddress.rb2
1 files changed, 1 insertions, 1 deletions
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