diff options
author | Jacob Helwig <jacob@puppetlabs.com> | 2011-04-22 13:56:39 -0700 |
---|---|---|
committer | Jacob Helwig <jacob@puppetlabs.com> | 2011-04-22 13:56:39 -0700 |
commit | 6b1cd16c7ef6ac78ffa85bfb81d193076db3e4c8 (patch) | |
tree | 33d38e9a00903f73e14261ef434c947cd7a18d45 /lib/facter/domain.rb | |
parent | 6e02daa1ed56f9758226f4e640ec419395868728 (diff) | |
download | facter-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/domain.rb')
0 files changed, 0 insertions, 0 deletions