Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-3025

Facter 4 user query overwritten when Facter is called outside of setcode in a custom fact file

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • FACT 4.1.0
    • FACT 4.1.1
    • 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

          Activity

            People

              Unassigned Unassigned
              gabriel.nagy Gabriel Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support