Will, I don't have any specific needs myself but there are probably two
other detailed exit codes I can envision. 1) there was a problem
calculating the value of the requested fact. 2) there was a problem
calculating the value of one or more facts, but at least one fact's value
was successfully calculated (most likely when used without a fact name in
the argument list). The latter I observed on switch gear where individual
facts that were not properly confined would fail to calculate because some
unix-ism was not present in the unix-ish OS.


Rob Nelson
[email protected]

On Fri, Jul 8, 2016 at 5:38 PM, Will Hopper <[email protected]> wrote:

> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" 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-dev/cd25a8bd-a686-4432-9756-d4f4208cd7a1%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/cd25a8bd-a686-4432-9756-d4f4208cd7a1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev/CAC76iT_JXjJzoY2oqp9JUZ0Ufyu2Gy%2Bje6ZOAmqfbPxh-riLwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to