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

Facter::Util::DirectoryLoader should have configurable weight

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 2.2.0
    • Fix Version/s: FACT 2.4.0
    • Component/s: Community
    • Labels:
    • Template:

      Description

      The Facter::Util::DirectoryLoader class has a constant, EXTERNAL_FACT_WEIGHT, used to assign a weight to all facts loaded using that class.

      When someone extends that class, they may want to assign a different weight. Instead of using a constant, which cannot be overridden in instances or even subclasses, the weight should be an optional parameter given to the initializer.

      See https://github.com/boxen/puppet-boxen/pull/116 for a specific use case.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  dgoodlad David Goodlad
                  QA Contact:
                  Kurt Wall
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: