Issue #7039 has been updated by Dominic Maraglia.

Assignee set to Jacob Helwig

facter_ver "origin/master"
puppet_ver "origin/master"
version {:facter=>"1.5.9rc5", :puppet=>"2.6.7-527-gfe45c24"}


I am unable to verify this fix using the example provided in the bug report.  
I've installed from origin/master for both Puppet and Facter, but I do not see 
the fix checked in.
----------------------------------------
Bug #7039: Facter having issue handling multiple facts in a single file
https://projects.puppetlabs.com/issues/7039

Author: Cody Robertson
Status: Available In Testing Branch
Priority: Urgent
Assignee: Jacob Helwig
Category: 
Target version: 1.5.9
Keywords: 
Branch: 
Affected Facter version: 


When declaring several facts in a single file Facter won't pick them up 
properly:

<pre>
# test_facts.rb
Facter.add(:test_fact1) do
    setcode do
        "test fact 1"
    end
end

Facter.add(:test_fact2) do
    setcode do
        "test fact 2"
    end
end
</pre>

<pre>
root@slinky [~/facter]# facter --version
1.5.9
root@slinky [~/facter]# facter --puppet test_fact1
root@slinky [~/facter]# facter --puppet test_fact2
</pre>

It works as expected with 1.5.8:

<pre>
root@slinky [~/facter]# facter --version
1.5.8
root@slinky [~/facter]# facter --puppet test_fact1
test fact 1
root@slinky [~/facter]# facter --puppet test_fact2
test fact 2
</pre>

There appears to be some weird behavior across versions being reported on the 
mailing list: https://groups.google.com/forum/#!topic/puppet-users/6jZUQofQDxk 
. It appears to work in Puppet manifests just not when invoked locally on the 
machine.


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