FreeBSD Port: rubygem-ohai-6.16.0

Steve Wills steve at mouf.net
Sun Jul 21 23:22:38 UTC 2013


Thanks, I went ahead and filed a PR for it:

http://www.freebsd.org/cgi/query-pr.cgi?pr=180732

We're going to have to wait on a maintainer timeout I think.

Steve

On Sun, Jul 21, 2013 at 12:22:32PM -0700, Douglas Thrift wrote:
> Hello,
> 
> I have attached a patch for Ohai which fixes IP address detection when
> there is an interface with no addresses such as ipfw0. I have already
> submitted the patch upstream: https://tickets.opscode.com/browse/OHAI-492.
> 
> Thanks!
> -- 
> Douglas William Thrift
> <douglas at douglasthrift.net>
> <http://douglasthrift.net/>

> --- ./lib/ohai/plugins/network.rb.orig	2013-07-20 23:51:57.000000000 -0700
> +++ ./lib/ohai/plugins/network.rb	2013-07-20 23:52:07.000000000 -0700
> @@ -42,6 +42,7 @@
>    ipaddresses = []
>    # ipaddresses going to hold #{family} ipaddresses and their scope
>    Mash[network['interfaces']].each do |iface, iface_v|
> +    next if iface_v.nil? or not iface_v.has_key? 'addresses'
>      iface_v['addresses'].each do |addr, addr_v|
>        next if addr_v.nil? or not addr_v.has_key? "family" or addr_v['family'] != family
>        ipaddresses <<  {

> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"



More information about the freebsd-ports mailing list