| Josh Cooper yes, Facter 4 does the validation e.g. a custom facts with a invalid UTF-8 result
Facter.add(:my_custom_fact) do |
setcode do |
"\xc3\x28" |
end |
end
|
will give
[2021-01-27 11:42:10.579028 ] ERROR Facter - Fact resolution fact='my_custom_fact', resolution='<anonymous>' resolved to an invalid value: String "\xC3(" doesn't match the reported encoding UTF-8
|
and the value of the fact will not be reported along with the other facts. The validation is done for custom and external facts (executable facts are external facts as well). Facter 3 does not seam to validate the results. e.g. Same external facts and Facter 3 reports
|