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.