diff options
author | Dominic Cleal <dcleal@redhat.com> | 2011-01-20 16:40:33 +0000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-03-07 20:07:57 +1100 |
commit | 93461d9ba2f798beedf67ca28d4dee3da1a7c4cf (patch) | |
tree | cb5f4d7b64404105d7b43492d36437201cb13e08 /lib | |
parent | 2e06cdcc820ad045f345579901d3d9f04530e0c6 (diff) | |
download | facter-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.rb | 2 |
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 |