Hey all,
As brought up by
https://tickets.puppetlabs.com/browse/FACT-1429, facter currently returns an exit code of 0 when a non-existent fact is queried. Thus, it's not possible to distinguish between a successful query and a silent failure other than by actually reading the output.
To improve on this, facter should produce meaningful exit codes. For backwards compatibility, we're thinking about adding a `--detailed-exitcodes` option. Our questions for the community are: are there other scenarios you'd like to see exit codes better utilized for? And, are there specific codes would you like to see for these scenarios, including our example non-existent fact query?
Thanks!
--
William Hopper
Puppet Platform Engineer