The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #1926

facter 1.5.3

Added by Ian Taylor over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:02/03/2009
Priority:HighDue date:
Assignee:James Turnbull% Done:

0%

Category:library
Target version:1.5.4
Keywords: Affected Facter version:
Branch:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

Not sure if I patched this correctly. Seems like the network facts setCode on a non-string (IPAddr). This later causes a problem when the code is compared via == against “” and coercion of “” to IPAddr fails.

ian@hspc:~$ facter
/usr/lib/ruby/1.8/ipaddr.rb:467:in `initialize': invalid address (ArgumentError)
    from /usr/lib/ruby/1.8/ipaddr.rb:495:in `new'
    from /usr/lib/ruby/1.8/ipaddr.rb:495:in `coerce_other'
    from /usr/lib/ruby/1.8/ipaddr.rb:140:in `=='
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/resolution.rb:132:in `value'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/fact.rb:75:in `value'
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `inject'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/fact.rb:71:in `each'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/fact.rb:71:in `inject'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/fact.rb:71:in `value'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/fact.rb:117:in `searching'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/fact.rb:67:in `value'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/collection.rb:104:in `to_hash'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/loader.rb:72:in `inject'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/collection.rb:103:in `each'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/collection.rb:103:in `inject'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter/util/collection.rb:103:in `to_hash'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter.rb:92:in `send'
    from /var/lib/gems/1.8/gems/facter-1.5.3/lib/facter.rb:92:in `to_hash'
    from /var/lib/gems/1.8/gems/facter-1.5.3/bin/facter:125
    from /var/lib/gems/1.8/bin/facter:19:in `load'
    from /var/lib/gems/1.8/bin/facter:19

0001-Ensure-that-setCode-is-given-a-string.patch Magnifier (1 KB) Ian Taylor, 02/03/2009 07:40 am

History

#1 Updated by James Turnbull over 5 years ago

  • Category set to library
  • Status changed from Unreviewed to Closed
  • Assignee set to James Turnbull
  • Target version set to 1.6.0

Fixed in commit:ccafc00614200d3af301e0dd42332056fe288da3 in branch master.

#2 Updated by James Turnbull over 5 years ago

  • Target version changed from 1.6.0 to 1.5.4

Also available in: Atom PDF