Hi Keven, thank fou or clearing that up.

On Friday, January 21, 2022 at 12:48:14 PM UTC+1 KevinR wrote:

> The cause for your issues is that there's code before the setcode do line, 
> which will cause issues under Facter 4.
> Having code before setcode do was a bad coding practice but didn't break 
> things in Facter 3. In Facter 4, it does break things. 
>

Is there documentation I can/should read about this?

The puppet documentation about custom facts is very shallow, mostly 
by-example only.
Then there is the (auto generated?) documentation for the gem itself, which 
probably does a good job of documenting all the parts, but does not go into 
how to properly use them together.

Where could I have learned that, and why, code should be inside the setcode 
block?

Regards,
Mark.
 

-- 
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/be16bcfc-b782-4b42-b39e-b48df58e3d66n%40googlegroups.com.

Reply via email to