Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
FACT 4.1.0
-
None
-
Night's Watch
-
NW - 2021-04-28
-
Needs Assessment
-
Bug Fix
-
Fix an issue where resolving custom facts could fail due to user query being overwritten because of nested Facter calls
-
Needs Assessment
Description
Facter 4 user query gets overwritten when Facter is called outside of setcode in a custom fact file.
The user query is held in a static options hash, which means that nested Facter calls could override the user query. Example: https://github.com/puppetlabs/puppetlabs-docker/blob/a3c32a1b7f5b244963cd407f6037e0a86d4a3fcb/spec/unit/lib/facter/docker_spec.rb#L9
Attachments
Issue Links
- causes
-
IAC-1582 Change in Facter.fact breaks unit tests in haproxy module
-
- Resolved
-