Resolution: Won't Do
Affects Version/s: FACT 2.1.0
Fix Version/s: None
Maybe execute should have a on error extra parameter e.g.:
Error Reporting to logs, can calling code
*ignore all exit status errors and can not execute errors (i.e. behavior like exec)
*ignore all exit status errors and report can not execute errors
*if can execute report non-0 exit status
*report any issues
Value to set the fact to on error
Value to set the fact to when no error and no output is return.
Param 4 Command etc
Ensure factor aborts on out of memory errors or similar, and these facts are not sent back to puppet master. Last thing we want is when a system is broken for puppet to produce a different catalog.
It's important if this function is going to be changed, that it is changed before its starts being used.