summaryrefslogtreecommitdiff
path: root/lib/facter
diff options
context:
space:
mode:
authorReid Vandewiele <reid@puppetlabs.com>2017-04-07 15:13:59 -0700
committerReid Vandewiele <reid@puppetlabs.com>2017-06-30 14:02:48 -0700
commit740ca7dc8053be93e43392ca61b2f308c0596d19 (patch)
tree63d98d34831c1d722fe3198c3f1219cf85931c97 /lib/facter
parentb98f0b3fc113b97cef618e0e6cb09bfdb666e467 (diff)
(FACT-932) Add new function, fact()
The fact() function allows dot-notation reference to facts. It is an alternative to using $facts directly with array-indexing. Array-indexing is often onerous to use since it doesn't align with how structured facts are accessed elsewhere in the ecosystem and if any element in a multi-step path doesn't exist, array indexing can cause a compilation failure. Example usage: fact('os.family')
Diffstat (limited to 'lib/facter')
0 files changed, 0 insertions, 0 deletions