The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #18756

wront regex in util/ip.rb

Added by javier wilson over 3 years ago. Updated about 3 years ago.

Status:Merged - Pending ReleaseStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:2.0.0
Keywords: Affected Facter version:1.6.17

We've Moved!

Ticket tracking is now hosted in JIRA:


if you compare

  regexp = /inet (?:addr:)?([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/


  :ipaddress => /inet addr:([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,

you can see why the second one will not work in Fedora 16+ where the “addr:” string no longer exists.

Related issues

Related to Facter - Bug #13396: Facter not working with recent net-tools Merged - Pending Release 03/25/2012
Related to Facter - Bug #15001: ipaddress fact fails on Fedora 17 Merged - Pending Release 06/13/2012


#1 Updated by David Kowis about 3 years ago

I’ve submitted a pull request for this one. I’m pretty sure I did all the steps right. The fork is off the 1.6.17, since this is only a bugfix.

#2 Updated by Anonymous about 3 years ago

  • Category set to interface
  • Status changed from Unreviewed to Merged - Pending Release
  • Target version set to 2.0.0
  • Branch set to

Merged into master as 00925c6.

This should be released in Facter 2.

Thanks again for the contribution!


Also available in: Atom PDF