Issue #1365 has been updated by luke.

Category set to library
Status changed from Unreviewed to Needs design decision
Priority changed from Normal to Low
Keywords set to ipaddress
Complexity changed from Unknown to Hard

I don't think this is actually fixable without some significant internal 
refactoring, or going back to having all facts loaded all the time.

The problem is that the load-by-name in Facter relies on facts actually being 
stored in a file with the same name as the fact.  So, it would expect a file 
named 'ipaddress_eth0' to exist for this to work, which of course isn't very 
reasonable given that it's a dynamic fact.

If anyone can come up with a reasonable way to handle this -- loading facts by 
name on demand but also loading facts whose names are automatically determined 
-- I'm all ears, but as it is, I don't think we'll get this fixed any time soon.
----------------------------------------
Bug #1365: ipaddress_* facts don't work when called directly on the CLI
http://reductivelabs.com/redmine/issues/show/1365

Author: Fujin
Status: Needs design decision
Priority: Low
Assigned to: 
Category: library
Target version: 
Keywords: ipaddress
Complexity: Hard
Patch: None


Calling ipaddress_* directly from the CLI appears broken, in;
<pre>
[EMAIL PROTECTED] (branch: master) ~/git/facter$ git log -n 1
commit b574c6a7f8c596e98bfab7ca48e172eb38fe23fa
Author: James Turnbull <[EMAIL PROTECTED]>
Date:   Mon Jun 9 02:37:30 2008 +1000

    Refactered ipmess.rb and util/ip.rb to support separate *BSD logic for *BSD
</pre>
<pre>
[EMAIL PROTECTED] (branch: master) ~/git/facter$ facter|grep ipaddress
ipaddress => 123.100.70.1
ipaddress_eth0 => 123.100.70.1
ipaddress_eth0_0 => 123.100.70.2
ipaddress_eth0_1 => 123.100.70.3
ipaddress_eth0_2 => 123.100.70.4
ipaddress_eth0_3 => 123.100.70.5
[EMAIL PROTECTED] (branch: master) ~/git/facter$ facter ipaddress
123.100.70.1
[EMAIL PROTECTED] (branch: master) ~/git/facter$ facter ipaddress_eth0
[EMAIL PROTECTED] (branch: master) ~/git/facter$ facter ipaddress_eth0_0
[EMAIL PROTECTED] (branch: master) ~/git/facter$ facter ipaddress_eth0_1
[EMAIL PROTECTED] (branch: master) ~/git/facter$ facter ipaddress_eth0_2
[EMAIL PROTECTED] (branch: master) ~/git/facter$ facter ipaddress_eth0_3
</pre>


----------------------------------------
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