Issue #16665 has been updated by Josh Cooper.

Status changed from Accepted to Merged - Pending Release
Target version set to 1.7.3

Merged in stable [0972700](https://github.com/puppetlabs/facter/commit/0972700) 
and up

----------------------------------------
Bug #16665: [windows] wrong ipaddress with locale != en
https://projects.puppetlabs.com/issues/16665#change-95745

* Author: Sebastian Lehn
* Status: Merged - Pending Release
* Priority: Normal
* Assignee: 
* Category: windows
* Target version: 1.7.3
* Keywords: windows, ipaddress, netmask, ipaddress6
* Branch: 
* Affected Facter version: 1.6.11
----------------------------------------
Within module Facter::Util::IP

<pre>
   # A map of all the different regexes that work for
   # a given platform or set of platforms.
   REGEX_MAP = {
    :windows => {
      :ipaddress  => /\s+IP Address:\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,
      :ipaddress6 => /Address 
((?![fe80|::1])(?>[0-9,a-f,A-F]*\:{1,2})+[0-9,a-f,A-F]{0,4})/,
      :netmask  => /\s+Subnet Prefix:\s+\S+\s+\(mask 
([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\)/
    }
   }
</pre>

Regex contains english strings. That's why facter returns no ip address for 
interfaces and no netmask.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to