Facter.add(:my_custom_fact) do has_weight(10_000) setcode do 'my_custom_fact' end end {code}
Facter 3 on the other hand, logs an error message, but still resolves all the facts that is able to. We should implement the same behaviour in Facter 4.
Facter.add(:my_custom_fact) do has_weight(10_000) setcode do 'my_custom_fact' end end {code}
Facter 3 on the other hand, logs an error message for the files with exceptions, but still resolves all the other facts that is able to. We should implement the same behaviour in Facter 4.
Facter.add(:my_custom_fact) do has_weight(10_000) setcode do 'my_custom_fact' end end {code}
Facter 3 on the other hand, logs an error message for the files with exceptions, but still resolves all other facts. We should implement the same behaviour in Facter 4.
The error message should be {code}ERROR Facter - error while resolving custom facts in <path_to_custom_facts>/my_custom_fact.rb undefined method `size' for nil:NilClass {code}
Previous verisons of Facter 4 would fail and report an error when resolving invalid custom facts. This was a potentially breaking change in behavior compared to Facter 3, which logged errors for failed facts but continued resolving other facts. Facter 4.0.28 resolves this issue by using the same behavior as Facter 3.
Previous verisons of Facter 4 would fail and report an error when resolving invalid custom facts. This was a potentially breaking change in behavior compared to Facter 3, which logged errors for failed facts but continued resolving other facts. Facter 4.0.2823 resolves this issue by using the same behavior as Facter 3.