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

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 4.1.0
    • Fix Version/s: FACT 4.1.1
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Night's Watch
    • Sprint:
      NW - 2021-04-28
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix an issue where resolving custom facts could fail due to user query being overwritten because of nested Facter calls
    • QA Risk Assessment:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support