summaryrefslogtreecommitdiffstats
path: root/lib/facter/network.rb
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-04-22 13:56:39 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-04-22 13:56:39 -0700
commit6b1cd16c7ef6ac78ffa85bfb81d193076db3e4c8 (patch)
tree33d38e9a00903f73e14261ef434c947cd7a18d45 /lib/facter/network.rb
parent6e02daa1ed56f9758226f4e640ec419395868728 (diff)
downloadfacter-6b1cd16c7ef6ac78ffa85bfb81d193076db3e4c8.tar.gz
facter-6b1cd16c7ef6ac78ffa85bfb81d193076db3e4c8.tar.xz
facter-6b1cd16c7ef6ac78ffa85bfb81d193076db3e4c8.zip
(#6614) Update ipaddress6 fact to work with Ruby 1.9
Calling #to_s on an Array such as ["foo"] in Ruby 1.9 will result in the string '["foo"]', instead of stringifying the element in the array which would have given the expected result of "foo". Since the element of the array we're dealing with is already a string, we can just grab it out of the array by using #first. Paired-with: Josh Cooper <josh@puppetlabs.com>
Diffstat (limited to 'lib/facter/network.rb')
0 files changed, 0 insertions, 0 deletions