Before this change, the log message format is wrong and the following is logged in case external facts file is not proper executable:
2020-04-09 15:07:49.499276 ERROR puppetlabs.facter - error while processing "%1%" for external facts: %2%
After this fix, the proper message will be logged:
2020-04-09 15:10:49.546980 ERROR puppetlabs.facter - error while processing "/opt/puppetlabs/facter/facts.d/a.sh" for external facts: child process returned non-zero exit status (8).
Filing this as a bug ticket and resolving it so we can reference this fix.
CC Jean Bond — this was an issue fixed in Facter 3.14.10/PE 2019.7 but did not have a JIRA ticket prior to the release. Can we get a release note for this?
If an external fact script cannot be executed, Facter 3.14.9's logging will not indicate what happened, and instead outputs `error while processing "%1%" for external facts: %2%`. This is fixed in Facter 3.14.10, which will output the reported error.
{quote}Before this change, the log message format is wrong and the following is logged in case external facts file is not proper executable:
{code} 2020-04-09 15:07:49.499276 ERROR puppetlabs.facter - error while processing "%1%" for external facts: %2% {code}
After this fix, the proper message will be logged:
{code}
2020-04-09 15:10:49.546980 ERROR puppetlabs.facter - error while processing "/opt/puppetlabs/facter/facts.d/a.sh" for external facts: child process returned non-zero exit status (8).
{code}{quote}
Filing this as a bug ticket and resolving it so we can reference this fix.