Signed-off-by: Mauro Pompilio <[email protected]>
---
Local-branch: ticket/next/6614
 lib/facter/ipaddress6.rb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/facter/ipaddress6.rb b/lib/facter/ipaddress6.rb
index b494b9d..d9bf452 100644
--- a/lib/facter/ipaddress6.rb
+++ b/lib/facter/ipaddress6.rb
@@ -28,7 +28,7 @@ Facter.add(:ipaddress6) do
     output = Facter::Util::Resolution.exec('/sbin/ifconfig')
 
     output.scan(/inet6 addr: 
((?>[0-9,a-f,A-F]*\:{1,2})+[0-9,a-f,A-F]{0,4})/).each { |str|
-      str = str.to_s
+      str = str.first
       unless str =~ /fe80.*/ or str == "::1"
         ip = str
       end
@@ -46,7 +46,7 @@ Facter.add(:ipaddress6) do
     ip = nil
 
     output.scan(/inet6 ((?>[0-9,a-f,A-F]*\:{0,2})+[0-9,a-f,A-F]{0,4})/).each { 
|str|
-      str = str.to_s
+      str = str.first
       unless str =~ /fe80.*/ or str == "::1"
         ip = str
       end
@@ -64,7 +64,7 @@ Facter.add(:ipaddress6) do
     ip = nil
 
     output.scan(/inet6 ((?>[0-9,a-f,A-F]*\:{1,2})+[0-9,a-f,A-F]{0,4})/).each 
do |str|
-      str = str.to_s
+      str = str.first
       unless str =~ /fe80.*/ or str == "::1"
         ip = str
         break
-- 
1.7.3.5

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to