Hi Dave!

This bug was actually just fixed in 
https://github.com/puppetlabs/facter/pull/2705

For now, you'll need to compare to the downcased version of the string and I'll 
file a ticket to get that noted in docs.

Good luck!



On May 8, 2024, at 2:15 AM, [email protected] <[email protected]> 
wrote:

You don't often get email from [email protected]. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>

To clarify, tried this on various systems - facter 4.4.0 and ruby 3.0.2 on 
Ubuntu Mint and facter 4.7.0 and ruby 3.1.4 on gentoo.  Examples taken from the 
puppet documentation on writing custom facts.
On Wednesday 8 May 2024 at 10:12:31 UTC+1 [email protected] wrote:

Total ruby noob and first time trying to right a custom fact. It does look too 
complication and I've sort of got this working.. But one question - from the 
puppet documentation gives two ways of using a 'confine'.

This lets me custom fact produce output via facter on my gentoo box as expected
confine :kernel => "Linux"

But this produces no output -
confine :kernel do |value|
value == "Linux"
end
What am I failing to understand- the documentation would suggest both should 
work?
Am trying this on a Mint box running facter 4.4.0 and ruby 3.0.2

Thanks in advance.
Dave

--
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1da07872-5d29-42e8-9aa6-62c3feb4087fn%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/1da07872-5d29-42e8-9aa6-62c3feb4087fn%40googlegroups.com?utm_medium=email&utm_source=footer>.


CAUTION: This email originated from outside of the organization. Do not click 
on links or open attachments unless you recognize the sender and know the 
content is safe.



This e-mail may contain information that is privileged or confidential. If you 
are not the intended recipient, please delete the e-mail and any attachments 
and notify us immediately.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/E2A73317-C756-4853-8E34-9AF19276BCBC%40perforce.com.

Reply via email to