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

Facter should not downcase fact names

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • FACT 3.5.1
    • None
    • None
      • Mixed-case fact names are allowed
      • An error is emitted in Facter if an invalid name is used
    • Platform OS
    • 2
    • Reviewed

    Description

      I cannot find a document that says that fact names "must" be downcase, but if you create a mixed-case fact, facter will downcase it for you:

      https://github.com/puppetlabs/facter/search?utf8=%E2%9C%93&q=downcase

      Users believe that mixed-case facts can be referenced in Puppet since mixed-case variables are acceptable: https://docs.puppetlabs.com/puppet/latest/reference/lang_reserved.html

      If a user creates a mixed-case fact and then uses the mixed-case fact name in their Puppet code, then the fact will have no value.

      http://serverfault.com/questions/651995/why-arent-my-puppet-variables-getting-assigned-by-vagrants-puppet-facter-optio

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jeremy Jeremy Adams
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support