Port the v4ips & v6ips Facter functions to Ruby 1.9 from Debian wheezy/jessie
authorPaul Wise <pabs@debian.org>
Wed, 3 Dec 2014 23:19:25 +0000 (07:19 +0800)
committerPaul Wise <pabs@debian.org>
Wed, 3 Dec 2014 23:19:25 +0000 (07:19 +0800)
commit61407897bd9a47068a19a41fa9550f4139dd25bd
tree69375fe97e6602c9e6a2239b8bf3bde142f809d7
parent7ccd1136c82b8220df554201c6e9530536a7bb87
Port the v4ips & v6ips Facter functions to Ruby 1.9 from Debian wheezy/jessie

This fixes these warnings from new hosts and fixes puppet IP address discovery:

Unable to add resolve nil for fact v4ips: undefined method `each' for #<String:0x0001000707f410>
Unable to add resolve nil for fact v6ips: undefined method `each' for #<String:0x0001000707e808>

Thanks-to: zeha & gwolf on the #debian-ruby channel
modules/debian-org/lib/facter/ipaddresses.rb