Issue #2078 has been updated by immerda.

nico wrote:
> I get the same error. ipaddr is available on my system.
> 
> Feel free to /query nico me if you need more informations

version? did you apply the patch?
----------------------------------------
Bug #2078: ip.rb errors command not found
http://projects.reductivelabs.com/issues/2078

Author: ivdmeer
Status: Re-opened
Priority: Normal
Assigned to: 
Category: library
Target version: 1.6.0
Complexity: Unknown
Keywords: facter, ip.rb


When running puppet or facter from command line on FreeBSD I get the following 
error:

$ facter
/usr/local/lib/ruby/site_ruby/1.8/facter/util/ip.rb:145: command not found:

Puppet still works, but I'm not sure what the impact is for this error.

<snip>
    144     def self.get_network_value(interface)
    145         require 'ipaddr'
    146
    147         ipaddress = get_interface_value(interface, "ipaddress")
    148         netmask = get_interface_value(interface, "netmask")
    149
    150         if ipaddress && netmask
    151             ip = IPAddr.new(ipaddress, Socket::AF_INET)
    152             subnet = IPAddr.new(netmask, Socket::AF_INET)
    153             network = ip.mask(subnet.to_s).to_s
    154         end
    155     end
</snip>


-- 
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://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to